53d0fde15f
* improve documentation on all defines * rename modules_dir to module_dir and modules_file to module_file * create $module_dir_path to achieve DRY-ness * silence the lsb_release stuff * improve concatenated_file to use an intermediate file, improving reliability and decoupling the updateing from notifying our peers. * remove serveral functions that were moved to puppet proper: - sha1 => sha1 - gsub,substitute,slash_escape => regsubst
25 lines
857 B
Puppet
25 lines
857 B
Puppet
# common/manifests/init.pp - Define common infrastructure for modules
|
|
# Copyright (C) 2007 David Schmitt <david@schmitt.edv-bus.at>
|
|
# See LICENSE for the full license granted to you.
|
|
|
|
import "defines/*.pp"
|
|
import "classes/*.pp"
|
|
|
|
module_dir { [ 'common' ]: }
|
|
|
|
file {
|
|
# Module programmers can use /var/lib/puppet/modules/$modulename to save
|
|
# module-local data, e.g. for constructing config files. See module_dir
|
|
# for details
|
|
"/var/lib/puppet/modules":
|
|
ensure => directory,
|
|
source => "puppet:///common/modules",
|
|
ignore => ".ignore",
|
|
recurse => true, purge => true, force => true,
|
|
mode => 0755, owner => root, group => 0;
|
|
}
|
|
|
|
# common packages
|
|
class pkg::openssl { package { openssl: ensure => installed } }
|
|
class pkg::rsync { package { rsync: ensure => installed } }
|
|
|