Skip to content

Instantly share code, notes, and snippets.

@jfryman
Created March 30, 2010 21:58
Show Gist options
  • Save jfryman/349644 to your computer and use it in GitHub Desktop.
Save jfryman/349644 to your computer and use it in GitHub Desktop.
# /etc/puppet/modules/znc/manifests/init.pp
class znc {
package {
znc: ensure => latest
znc-dev: ensure => latest,
znc-extra: ensure => latest,
znc-perl: ensure => latest,
znc-tcl: ensure => latest,
znc-webadmin: ensure => latest,
}
file { "/etc/znc":
ensure => directory,
owner => znc,
group => znc,
mode => 0755
}
file { "/etc/znc/modules":
ensure => directory,
owner => znc,
group => znc,
mode => 0755,
}
file { "/etc/znc/configs":
ensure => directory,
owner => znc,
group => znc,
mode => 0755
}
file { "/etc/znc/configs/znc.conf":
owner => znc,
group => znc,
mode => 650,
source => "puppet:///znc/znc.conf",
unless => "/usr/bin/test -e /etc/znc/configs/znc.conf"
}
file { "/etc/init.d/znc":
owner => root,
group => root,
mode => 755,
source => "puppet:///znc/init.znc"
}
user { "znc":
uid => '12345',
comment => 'Default ZNC Daemon user',
ensure => 'present',
shell => '/bin/false',
}
service {
znc:
ensure => true,
enable => true,
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment