fuel-library/deployment/puppet/osnailyfacter/manifests/puppet_pull.pp
Bartłomiej Piotrowski a94ff2dcce Remove unneeded puppet module
Because puppet::pull is still used by tools task, it has been renamed
osnailyfacter::puppet_pull.

Closes-bug: 1507532
Change-Id: I9ad5fb4896168e3756c491ee7c41167aea981406
2015-10-27 07:01:37 +00:00

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),
}
}