a94ff2dcce
Because puppet::pull is still used by tools task, it has been renamed osnailyfacter::puppet_pull. Closes-bug: 1507532 Change-Id: I9ad5fb4896168e3756c491ee7c41167aea981406
36 lines
840 B
Puppet
36 lines
840 B
Puppet
# == Class: osnailyfacter::puppet_pull
|
|
#
|
|
# Installs a convenience script to pull manifests from master node
|
|
#
|
|
# == Parameters
|
|
#
|
|
# [*script*]
|
|
# Specifies path where script will be installed
|
|
#
|
|
# [*template*]
|
|
# Specifies template to be used for script
|
|
#
|
|
# [*modules_source*]
|
|
# Specifies location from which modules will be pulled
|
|
#
|
|
# [*manifests_source*]
|
|
# Specifies location from which manifests will be pulled
|
|
#
|
|
|
|
class osnailyfacter::puppet_pull (
|
|
$script = '/usr/local/bin/puppet-pull',
|
|
$template = "${module_name}/puppet-pull.sh.erb",
|
|
$modules_source = 'rsync://10.20.0.2/puppet/modules',
|
|
$manifests_source = 'rsync://10.20.0.2/puppet/manifests',
|
|
) {
|
|
|
|
file { $script :
|
|
ensure => present,
|
|
mode => '0755',
|
|
owner => 'root',
|
|
group => 'root',
|
|
content => template($template),
|
|
}
|
|
|
|
}
|