a94ff2dcce
Because puppet::pull is still used by tools task, it has been renamed osnailyfacter::puppet_pull. Closes-bug: 1507532 Change-Id: I9ad5fb4896168e3756c491ee7c41167aea981406
10 lines
343 B
Plaintext
10 lines
343 B
Plaintext
#!/bin/sh
|
|
local_modules="/etc/puppet/modules"
|
|
local_manifests="/etc/puppet/manifests"
|
|
remote_modules="<%= @modules_source %>"
|
|
remote_manifests="<%= @manifests_source %>"
|
|
main_manifest="/etc/puppet/manifests/site.pp"
|
|
|
|
rsync -rvc --delete "${remote_modules}/" "${local_modules}/"
|
|
rsync -rvc --delete "${remote_manifests}/" "${local_manifests}/"
|