Skip to content

Commit afea0c9

Browse files
author
Stephen Lauck
committed
Rename patch role to compliance
Add windows example node
1 parent b39704e commit afea0c9

10 files changed

Lines changed: 13 additions & 44 deletions

File tree

‎.kitchen.yml‎

Lines changed: 0 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -83,35 +83,3 @@ suites:
8383
customize:
8484
memory: 1024
8585
cpus: 1
86-
87-
# - name: supermarket
88-
# run_list:
89-
# - recipe[test::hostsfile]
90-
# - recipe[test::supermarket_node]
91-
# attributes:
92-
# supermarket_omnibus:
93-
# chef_server_url: 'https://chef.services.com'
94-
# chef_oauth2_verify_ssl: false
95-
# driver:
96-
# vm_hostname: supermarket.services.com
97-
# network:
98-
# - ['private_network', {ip: '33.33.33.13'}]
99-
# customize:
100-
# memory: 1024
101-
# cpus: 1
102-
#
103-
# - name: compliance
104-
# run_list:
105-
# - recipe[test::hostsfile]
106-
# - recipe[test::compliance_node]
107-
# attributes:
108-
# compliance:
109-
# accept_license: true
110-
# fqdn: compliance.services.com
111-
# driver:
112-
# vm_hostname: compliance.services.com
113-
# network:
114-
# - ['private_network', {ip: '33.33.33.14'}]
115-
# customize:
116-
# memory: 1024
117-
# cpus: 1

‎Berksfile.lock‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ GRAPH
2121
chef-ingredient (>= 0.18.0)
2222
chef-server-ctl (0.1.0)
2323
chef-server (>= 0.0.0)
24-
chef-services (5.0.0)
24+
chef-services (5.1.0)
2525
chef_stack (>= 0.0.0)
2626
fancy_execute (>= 0.0.0)
2727
chef_stack (0.5.10)
@@ -37,6 +37,7 @@ GRAPH
3737
hostsfile (>= 0.0.0)
3838
test (0.0.1)
3939
chef-server-ctl (>= 0.0.0)
40+
chef_stack (>= 0.0.0)
4041
hostsfile (>= 0.0.0)
4142
ntp (>= 0.0.0)
4243
supermarket-omnibus-cookbook (>= 0.0.0)

‎files/default/installer.sh‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -117,12 +117,12 @@ berks upload --no-ssl-verify
117117
# --> bootstrap with correct runlist
118118

119119
if [ ! -z $CHEF_AUTOMATE_FQDN ]; then
120-
knife bootstrap $CHEF_AUTOMATE_FQDN -N $CHEF_AUTOMATE_FQDN -x $CHEF_USER -P $CHEF_PW --sudo -r "role[patch],recipe[chef-services::delivery]" -j "{\"chef_server\":{\"fqdn\":\"$CHEF_SERVER_FQDN\"},\"chef_automate\":{\"fqdn\":\"$CHEF_AUTOMATE_FQDN\"}}" -E delivered -y --node-ssl-verify-mode none
120+
knife bootstrap $CHEF_AUTOMATE_FQDN -N $CHEF_AUTOMATE_FQDN -x $CHEF_USER -P $CHEF_PW --sudo -r "role[compliance],recipe[chef-services::delivery]" -j "{\"chef_server\":{\"fqdn\":\"$CHEF_SERVER_FQDN\"},\"chef_automate\":{\"fqdn\":\"$CHEF_AUTOMATE_FQDN\"}}" -E delivered -y --node-ssl-verify-mode none
121121
fi
122122

123123
if [ ! -z $CHEF_BUILD_FQDN ]; then
124-
knife bootstrap $CHEF_BUILD_FQDN -N $CHEF_BUILD_FQDN -x $CHEF_USER -P $CHEF_PW --sudo -r "role[patch],recipe[chef-services::install_build_nodes]" -j "{\"chef_server\":{\"fqdn\":\"$CHEF_SERVER_FQDN\"},\"chef_automate\":{\"fqdn\":\"$CHEF_AUTOMATE_FQDN\"},\"tags\":\"delivery-build-node\"}" -E delivered -y --node-ssl-verify-mode none
124+
knife bootstrap $CHEF_BUILD_FQDN -N $CHEF_BUILD_FQDN -x $CHEF_USER -P $CHEF_PW --sudo -r "role[compliance],recipe[chef-services::install_build_nodes]" -j "{\"chef_server\":{\"fqdn\":\"$CHEF_SERVER_FQDN\"},\"chef_automate\":{\"fqdn\":\"$CHEF_AUTOMATE_FQDN\"},\"tags\":\"delivery-build-node\"}" -E delivered -y --node-ssl-verify-mode none
125125
fi
126126

127127
echo -e "{\"chef_server\": {\"fqdn\":\"$CHEF_SERVER_FQDN\",\"install_dir\":\"$INSTALL_DIR\"}, \"chef_environment\": \"delivered\"}" > attributes.json
128-
chef-client -j attributes.json -r 'role[patch],recipe[chef-services::chef-server]'
128+
chef-client -j attributes.json -r 'role[compliance],recipe[chef-services::chef-server]'

‎metadata.rb‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
license 'all_rights'
55
description 'Installs/Configures chef-services'
66
long_description 'Installs/Configures chef-services'
7-
version '5.1.0'
7+
version '5.2.0'
88

99
depends 'fancy_execute'
1010
depends 'chef_stack'

‎recipes/chef-server.rb‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
config "file_cache_path '#{node['chef_server']['install_dir']}/chef_installer/.chef/cache'"
3838
ssl_verify false
3939
run_list [
40-
"role[patch]",
40+
"role[compliance]",
4141
"recipe[chef-services::chef-server]"
4242
]
4343
end

‎recipes/compliance_patch.rb‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@
44
recursive true
55
end
66

7-
file "#{node['chef_server']['install_dir']}/chef_installer/roles/patch.json" do
7+
file "#{node['chef_server']['install_dir']}/chef_installer/roles/compliance.json" do
88
content <<-EOD
99
{
10-
"name": "patch",
10+
"name": "compliance",
1111
"description": "",
1212
"json_class": "Chef::Role",
1313
"default_attributes": {

‎test/fixtures/cookbooks/test/recipes/compliance_node.rb‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@
6363
"chef_oauth2_verify_ssl": false
6464
},
6565
"run_list": [
66-
"role[patch]",
66+
"role[compliance]",
6767
"recipe[chef-services::compliance]"
6868
],
6969
"chef_environment": "delivered"

‎test/fixtures/cookbooks/test/recipes/delivery_build_node.rb‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
5555
"fqdn": "automate.services.com"
5656
},
5757
"run_list": [
58-
"role[patch]",
58+
"role[compliance]",
5959
"recipe[chef-services::install_build_nodes]"
6060
],
6161
"chef_environment": "delivered"

‎test/fixtures/cookbooks/test/recipes/delivery_node.rb‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@
6060
"fqdn": "chef.services.com"
6161
},
6262
"run_list": [
63-
"role[patch]",
63+
"role[compliance]",
6464
"recipe[chef-services::delivery]"
6565
],
6666
"chef_environment": "delivered"

‎test/fixtures/cookbooks/test/recipes/supermarket_node.rb‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@
6363
"chef_oauth2_verify_ssl": false
6464
},
6565
"run_list": [
66-
"role[patch]",
66+
"role[compliance]",
6767
"recipe[chef-services::supermarket]"
6868
],
6969
"chef_environment": "delivered"

0 commit comments

Comments
 (0)