Created
October 2, 2013 22:13
-
-
Save jaqque/6801280 to your computer and use it in GitHub Desktop.
Chef convergence.... http://gettingstartedwithchef.com/first-steps-with-chef.html
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
default.rb: | |
salt_data = 'this is ridiculous' | |
ruby_block 'fetch-salt-data' do | |
block do | |
salt_data = File.read(wp_secrets) | |
puts "Hay! Look! Salt_data!" | |
puts "#{salt_data}" | |
end | |
action :create | |
end | |
chef-solo: | |
* ruby_block[fetch-salt-data] action createHay! Look! Salt_data! | |
define('AUTH_KEY', ...etc | |
wp-config.php: | |
define('DB_COLLATE', ''); | |
this is ridiculous | |
$table_prefix = 'wp_'; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment