mirror of
https://github.com/cliffe/SecGen.git
synced 2026-02-21 11:18:06 +00:00
irc modules
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
class irc2::config{
|
||||
class irc2::config {
|
||||
service { 'ircd-irc2':
|
||||
enable => true,
|
||||
ensure => 'running',
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
class irc2::install{
|
||||
package { ['ircd-irc2']:
|
||||
class irc2::install {
|
||||
package { 'ircd-irc2':
|
||||
ensure => 'installed',
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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>
|
||||
|
||||
2
modules/services/unix/irc/ircd_hybrid/ircd_hybrid.pp
Normal file
2
modules/services/unix/irc/ircd_hybrid/ircd_hybrid.pp
Normal file
@@ -0,0 +1,2 @@
|
||||
include ircd_hybrid::install
|
||||
include ircd_hybrid::config
|
||||
@@ -0,0 +1,6 @@
|
||||
class ircd_hybrid::config {
|
||||
service { 'ircd-hybrid':
|
||||
enable => true,
|
||||
ensure => 'running',
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
class ircd_hybrid::install {
|
||||
package { 'ircd-hybrid':
|
||||
ensure => 'installed',
|
||||
}
|
||||
}
|
||||
33
modules/services/unix/irc/ircd_hybrid/secgen_metadata.xml
Normal file
33
modules/services/unix/irc/ircd_hybrid/secgen_metadata.xml
Normal 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>
|
||||
@@ -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
|
||||
Reference in New Issue
Block a user