irc modules

This commit is contained in:
Z. Cliffe Schreuders
2019-07-11 17:06:42 +01:00
parent ec4107c931
commit 2236f4bf07
8 changed files with 69 additions and 5 deletions

View File

@@ -1,4 +1,4 @@
class irc2::config{
class irc2::config {
service { 'ircd-irc2':
enable => true,
ensure => 'running',

View File

@@ -1,5 +1,5 @@
class irc2::install{
package { ['ircd-irc2']:
class irc2::install {
package { 'ircd-irc2':
ensure => 'installed',
}
}

View File

@@ -19,9 +19,10 @@
<conflict>
<type>ircd</type>
</conflict>
<!-- <conflict>
<conflict>
<!-- install stalls and times out on Stretch -->
<name>.*Debian.*Stretch.*</name>
</conflict> -->
</conflict>
<requires>
<type>update</type>
</requires>

View File

@@ -0,0 +1,2 @@
include ircd_hybrid::install
include ircd_hybrid::config

View File

@@ -0,0 +1,6 @@
class ircd_hybrid::config {
service { 'ircd-hybrid':
enable => true,
ensure => 'running',
}
}

View File

@@ -0,0 +1,5 @@
class ircd_hybrid::install {
package { 'ircd-hybrid':
ensure => 'installed',
}
}

View File

@@ -0,0 +1,33 @@
<?xml version="1.0"?>
<service xmlns="http://www.github/cliffe/SecGen/service"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.github/cliffe/SecGen/service">
<name>IRC Server ircd-hybrid</name>
<author>Z. Cliffe Schreuders</author>
<module_license>MIT</module_license>
<description>A lightweight, high-performance internet relay chat daemon.
</description>
<type>ircd</type>
<platform>linux</platform>
<!--optional details-->
<software_name>ircd-hybrid</software_name>
<software_license>MIT</software_license>
<conflict>
<type>ircd</type>
</conflict>
<conflict>
<!-- install stalls and times out on Kali -->
<name>.*Kali.*</name>
</conflict>
<conflict>
<!-- Service start returns 1 on Wheezy -->
<name>.*Wheezy.*</name>
</conflict>
<requires>
<type>update</type>
</requires>
</service>

View File

@@ -0,0 +1,17 @@
require_relative '../../../../../lib/post_provision_test'
class IRC2Test < PostProvisionTest
def initialize
self.module_name = 'irc2'
self.module_path = get_module_path(__FILE__)
super
self.port = 6667
end
def test_module
super
test_service_up
end
end
IRC2Test.new.run