Skip to content

Instantly share code, notes, and snippets.

class profiles::security {
file { ['/etc/hosts', '/etc/passwd', '/etc/shadow', '/etc/gshadow', '/etc/group']:
ensure => 'present',
audit => 'all',
}
}
Installed: 2.2.22-13+deb7u6
Candidate: 2.2.22-13+deb7u6
Version table:
*** 2.2.22-13+deb7u6 0
500 http://cdn.debian.net/debian/ wheezy/main amd64 Packages
500 http://security.debian.org/ wheezy/updates/main amd64 Packages
100 /var/lib/dpkg/status
$pkgs = hiera_array("basepkgs")
$pkgs.each |$pkg| {
package { "$pkg":
ensure => installed,
require => Anchor['::profiles::base::end']
}
}
nagioscontacts:
emi2fast:
ensure: present
contact_name: user01
alias: user01
use: generic-contact
email: [email protected]
contactgroups: admins
target: /etc/nagios3/conf.d/contacts_nagios2.cfg
file { 'apachevhost':
path => '/etc/apache2/sites-enabled',
source => 'puppet:///modules/profiles/vhost',
recurse => true,
ensure => directory,
}