mirror of
https://github.com/cliffe/SecGen.git
synced 2026-02-21 11:18:06 +00:00
update irc server module
This commit is contained in:
@@ -1,2 +1,2 @@
|
||||
include irc2::install
|
||||
include irc2::config
|
||||
include irc2::service
|
||||
|
||||
@@ -1,6 +0,0 @@
|
||||
class irc2::config {
|
||||
service { 'ircd-irc2':
|
||||
enable => true,
|
||||
ensure => 'running',
|
||||
}
|
||||
}
|
||||
12
modules/services/unix/irc/irc2/manifests/service.pp
Normal file
12
modules/services/unix/irc/irc2/manifests/service.pp
Normal file
@@ -0,0 +1,12 @@
|
||||
class irc2::service {
|
||||
exec { 'irc2-systemd-reload':
|
||||
command => 'systemctl daemon-reload',
|
||||
path => [ '/usr/bin', '/bin', '/usr/sbin' ],
|
||||
refreshonly => true,
|
||||
}->
|
||||
service { 'ircd-irc2':
|
||||
enable => true,
|
||||
ensure => 'running',
|
||||
provider => systemd,
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user