Add updates support to puppet-pull
Modify puppet-pull script to support passing puppet modules and manifests from the astute.yaml during update. Closes-Bug: 1361600 Change-Id: I5649e0cde20daa428826add58eee27686bf351b5
This commit is contained in:
parent
b3237073cd
commit
e85834ff8e
|
@ -278,7 +278,8 @@ class os_common {
|
|||
}
|
||||
|
||||
class { 'puppet::pull' :
|
||||
master_ip => $::fuel_settings['master_ip'],
|
||||
modules_source => $::fuel_settings['puppet_modules_source'],
|
||||
manifests_source => $::fuel_settings['puppet_manifests_source'],
|
||||
}
|
||||
} # OS_COMMON ENDS
|
||||
|
||||
|
|
|
@ -1,7 +1,8 @@
|
|||
class puppet::pull (
|
||||
$master_ip = '10.20.0.2',
|
||||
$script = '/usr/local/bin/puppet-pull',
|
||||
$template = 'puppet/puppet-pull.sh.erb',
|
||||
$modules_source = 'rsync://10.20.0.2/puppet/modules',
|
||||
$manifests_source = 'rsync://10.20.0.2/puppet/manifests',
|
||||
) {
|
||||
|
||||
file { $script :
|
||||
|
|
|
@ -1,9 +1,8 @@
|
|||
#!/bin/sh
|
||||
master_ip="<%= @master_ip %>"
|
||||
local_modules="/etc/puppet/modules"
|
||||
local_manifests="/etc/puppet/manifests"
|
||||
remote_modules="rsync://${master_ip}/puppet/modules"
|
||||
remote_manifests="rsync://${master_ip}/puppet/manifests"
|
||||
remote_modules="<%= @modules_source %>"
|
||||
remote_manifests="<%= @manifests_source %>"
|
||||
main_manifest="/etc/puppet/manifests/site.pp"
|
||||
|
||||
rsync -rvc --delete "${remote_modules}/" "${local_modules}/"
|
||||
|
|
Loading…
Reference in New Issue