generator_files/cookbooks/automate/recipes/default.rb in wombat-cli-0.5.0 vs generator_files/cookbooks/automate/recipes/default.rb in wombat-cli-0.6.0

- old
+ new

@@ -41,10 +41,14 @@ directory '/var/opt/delivery/nginx/ca' directory '/etc/delivery' do mode '0644' end +file '/var/opt/delivery/.telemetry.disabled' do + action :create +end + file '/etc/delivery/automate.pem' do content lazy { IO.read('/tmp/private.pem') } action :create sensitive true end @@ -75,12 +79,20 @@ chef_server_url: node['demo']['chef_server_url'], delivery_fqdn: node['demo']['automate_fqdn'] ) end +# Addresses an edge case where rabbit times out on the reconfigure. +execute 'Give delivery time to start up' do + command 'sleep 300' + action :run +end + execute 'delivery-ctl reconfigure' do command 'delivery-ctl reconfigure' action :run + retries 5 + retry_delay 10 end execute 'delivery-ctl create-enterprise' do command "delivery-ctl create-enterprise #{node['demo']['enterprise']} --password #{node['demo']['users']['admin']['password']} --ssh-pub-key-file=/etc/delivery/builder_key.pub" action :run