I'm following along with a Railscast that teaches how to set up Chef solo. It uses two interesting terminal commands that I had never seen before, only one of which I can get to work. When I do
scp -r email@example.com:/var/chef .
It copies the contents of the remote server directory to my local machine. The following command is supposed to sync the files back to the server after I change them on my machine
rsync -r . root@198.XXX.XXX.XXX:/var/chef
However, the changes aren't showing on the remote server, and when I run the chef commands that are supposed to apply the changes, it's not showing any changes that need to be made.
Am I using rsync incorrectly?
Running this command gave the following output. Still no changes are shown on the remote server
rsync -rvv . root@198.XXX.XXX.XXX:/var/chef `building file list ... done delta-transmission enabled chef/node.json chef/solo.rb chef/cache/chef-client-running.pid chef/cache/chef-stacktrace.out chef/chef/node.json chef/chef/solo.rb chef/chef/cache/chef-client-running.pid chef/chef/cache/chef-stacktrace.out chef/chef/cookbooks/main/recipes/default.rb chef/cookbooks/main/recipes/default.rb chef/cookbooks/main/templates/default/zshrc.erb total: matches=17 hash_hits=17 false_alarms=0 data=0 sent 1167 bytes received 442 bytes 643.60 bytes/sec total size is 6236 speedup is 3.88`
You'll notice from the above update that a
templates directory should be inside the
main directory (along with a
recipes directory), however, this is what's showing
root@Chef3:/var/chef/cookbooks# cd main root@Chef3:/var/chef/cookbooks/main# ls recipes