| 44 | ''Change default web_dir, xpc_url, xpc_fn'' |
| 45 | {{{ |
| 46 | # |
| 47 | # Cookbook Name:: iam-app-xpc |
| 48 | # Attributes:: default |
| 49 | # |
| 50 | |
| 51 | default['iam-app-xpc']['web_dir'] = '/var/www/html' |
| 52 | default['iam-app-xpc']['xpc_url'] = 'https://xpc.cloudpath.net/download_tar.php?guid={000372-539FAB66-DACE-FA53-AAAC-83771BF9C00E-9D97AC75-937B-E97D-BD5E}' |
| 53 | default['iam-app-xpc']['xpc_fn'] = 'Cloudpath_PKG3987_SVR688_U1293_PHP_5-0-538_20161025.tar.gz' |
| 54 | default['iam-app-xpc']['key_fn'] = '/etc/pki/tls/private/server.key' |
| 55 | default['iam-app-xpc']['cert_fn'] = '/etc/pki/tls/certs/server.crt' |
| 56 | default['iam-app-xpc']['chain_fn'] = '/etc/pki/tls/certs/server-chain.crt' |
| 57 | |
| 58 | # |
| 59 | # Sensu Monitoring |
| 60 | # |
| 61 | |
| 62 | default['iam-app-people']['sensu-handlers'] = ['oit-iam'] |
| 63 | |
| 64 | default['sensu']['rabbitmq']['host'] = '137.229.13.9' |
| 65 | default['sensu']['rabbitmq']['password'] = 'czp0vEX6oWTy' |
| 66 | |
| 67 | }}} |
| 73 | ''Change description, version'' |
| 74 | {{{ |
| 75 | name 'iam-app-xpc' |
| 76 | maintainer 'Glen Johnson' |
| 77 | maintainer_email 'gfjohnson@alaska.edu' |
| 78 | license 'All rights reserved' |
| 79 | description 'Installs/Configures iam-app-xpc' |
| 80 | long_description IO.read(File.join(File.dirname(__FILE__), 'README.md')) |
| 81 | version '0.1.4' |
| 82 | |
| 83 | depends 'chef-vault', '~> 1.3.3' |
| 84 | depends 'sensu', '~> 3.0.0' |
| 85 | }}} |
| 87 | ''Record changes for ongoing version history"" |
| 88 | {{{ |
| 89 | # CHANGELOG |
| 90 | |
| 91 | This file is used to list changes made in each version of the cookbook. |
| 92 | |
| 93 | ## 0.1.0 |
| 94 | - 0.1.4 - lttoth - apply latest XpressConnect update |
| 95 | - 0.1.3 - gfjohnson - rsyslog.d config apache |
| 96 | - 0.1.2 - gfjohnson - send apache logs to central logging |
| 97 | - 0.1.1 - gfjohnson - sensu http check allow redirect |
| 98 | - 0.1.0 - gfjohnson - initial prod release |
| 99 | |
| 100 | - - - |
| 101 | Check the [Markdown Syntax Guide](http://daringfireball.net/projects/markdown/syntax) for help with Markdown. |
| 102 | |
| 103 | The [Github Flavored Markdown page](http://github.github.com/github-flavored-markdown/) describes the differences between markdown on github and standard markdown. |
| 104 | }}} |
36 | | $ git co -b xpcupdate[[br]] |
| 106 | ''Test that kitchen will run without errors, without actually running the program. The output is lengthy.'' |
| 107 | {{{ |
| 108 | -----> Starting Kitchen (v1.13.2) |
| 109 | -----> Cleaning up any prior instances of <default-centos-67> |
| 110 | -----> Destroying <default-centos-67>... |
| 111 | Finished destroying <default-centos-67> (0m0.00s). |
| 112 | -----> Testing <default-centos-67> |
| 113 | -----> Creating <default-centos-67>... |
| 114 | Bringing machine 'default' up with 'virtualbox' provider... |
| 115 | ==> default: Importing base box 'bento/centos-6.7'... |
| 116 | ==> default: Matching MAC address for NAT networking... |
| 117 | ==> default: Checking if box 'bento/centos-6.7' is up to date... |
| 118 | ==> default: Setting the name of the VM: kitchen-iam-app-xpc-default-centos-67_default_1477441968033_78767 |
| 119 | ==> default: Clearing any previously set network interfaces... |
| 120 | ==> default: Preparing network interfaces based on configuration... |
| 121 | |
| 122 | ... |
| 123 | |
| 124 | Chef Client finished, 50/70 resources updated in 03 minutes 58 seconds |
| 125 | Finished converging <default-centos-67> (4m21.45s). |
| 126 | -----> Setting up <default-centos-67>... |
| 127 | Finished setting up <default-centos-67> (0m0.00s). |
| 128 | -----> Verifying <default-centos-67>... |
| 129 | Preparing files for transfer |
| 130 | |
| 131 | ... |
| 132 | |
| 133 | Service "httpd" |
| 134 | should be enabled |
| 135 | should be running |
| 136 | |
| 137 | Port "80" |
| 138 | should be listening |
| 139 | |
| 140 | Port "443" |
| 141 | should be listening |
| 142 | |
| 143 | Package "sensu" |
| 144 | should be installed |
| 145 | |
| 146 | Service "sensu-client" |
| 147 | should be enabled |
| 148 | should be running |
| 149 | |
| 150 | Finished in 0.41218 seconds (files took 0.41847 seconds to load) |
| 151 | 7 examples, 0 failures |
| 152 | |
| 153 | Finished verifying <default-centos-67> (0m8.89s). |
| 154 | -----> Destroying <default-centos-67>... |
| 155 | ==> default: Forcing shutdown of VM... |
| 156 | ==> default: Destroying VM and associated drives... |
| 157 | Vagrant instance <default-centos-67> destroyed. |
| 158 | Finished destroying <default-centos-67> (0m4.54s). |
| 159 | Finished testing <default-centos-67> (5m22.79s). |
| 160 | -----> Kitchen is finished. (5m26.26s) |
| 161 | |
| 162 | }}} |
43 | | $ ls[[br]] |
44 | | $ ls .git[[br]] |
| 200 | {{{ |
| 201 | Counting objects: 11, done. |
| 202 | Delta compression using up to 8 threads. |
| 203 | Compressing objects: 100% (5/5), done. |
| 204 | Writing objects: 100% (6/6), 551 bytes | 0 bytes/s, done. |
| 205 | Total 6 (delta 4), reused 0 (delta 0) |
| 206 | remote: Resolving deltas: 100% (4/4), completed with 4 local objects. |
| 207 | |
| 208 | To git@github.alaska.edu:OIT-IAM/iam-app-xpc.git |
| 209 | * [new branch] xpcupdate -> xpcupdate |
| 210 | Branch xpcupdate set up to track remote branch xpcupdate from origin. |
| 211 | }}} |
| 212 | $ ls -aFC .git[[br]] |
| 213 | {{{ |
| 214 | ./ HEAD description logs/ |
| 215 | ../ ORIG_HEAD hooks/ objects/ |
| 216 | COMMIT_EDITMSG branches/ index packed-refs |
| 217 | FETCH_HEAD config info/ refs/ |
| 218 | }}} |
47 | | $ du .git[[br]] |
| 226 | {{{ |
| 227 | remote: Counting objects: 6, done. |
| 228 | remote: Compressing objects: 100% (1/1), done. |
| 229 | remote: Total 6 (delta 4), reused 5 (delta 4), pack-reused 0 |
| 230 | Unpacking objects: 100% (6/6), done. |
| 231 | From github.alaska.edu:OIT-IAM/iam-app-xpc |
| 232 | 556252d..44748a9 master -> origin/master |
| 233 | Updating 556252d..44748a9 |
| 234 | Fast-forward |
| 235 | CHANGELOG.md | 1 + |
| 236 | attributes/default.rb | 2 +- |
| 237 | metadata.rb | 2 +- |
| 238 | 3 files changed, 3 insertions(+), 2 deletions(-) |
| 239 | }}} |