mirror of
https://github.com/cliffe/SecGen.git
synced 2026-02-22 03:38:01 +00:00
Parameterised port - services/unrealirc
This commit is contained in:
@@ -11,6 +11,7 @@ define unrealirc::config::listen (
|
||||
owner => $unrealirc::user,
|
||||
group => $unrealirc::group,
|
||||
content => template('unrealirc/config/listen.conf.erb'),
|
||||
notify => Service['unreal'],
|
||||
require => File['unrealirc_config_directory'],
|
||||
}
|
||||
}
|
||||
@@ -15,6 +15,9 @@ class unrealirc(
|
||||
$ssl_key = undef,
|
||||
$motd = undef
|
||||
) {
|
||||
$json_inputs = base64('decode', $::base64_inputs)
|
||||
$secgen_inputs = parsejson($json_inputs)
|
||||
$port = $secgen_inputs['port'][0]
|
||||
|
||||
class { '::unrealirc::vulnerabilities': } ->
|
||||
class { '::unrealirc::install': } ->
|
||||
@@ -40,7 +43,7 @@ class unrealirc(
|
||||
}
|
||||
|
||||
unrealirc::config::listen { 'default_6667':
|
||||
port => 6667,
|
||||
port => $port,
|
||||
}
|
||||
|
||||
unrealirc::config::log { 'default':
|
||||
|
||||
@@ -13,6 +13,12 @@
|
||||
<type>irc</type>
|
||||
<platform>linux</platform>
|
||||
|
||||
<read_fact>port</read_fact>
|
||||
|
||||
<default_input into="port">
|
||||
<value>1337</value>
|
||||
</default_input>
|
||||
|
||||
<!--optional details-->
|
||||
<software_name>unreal</software_name>
|
||||
<software_license>MIT</software_license>
|
||||
|
||||
@@ -10,6 +10,7 @@
|
||||
|
||||
<service type="irc"/>
|
||||
|
||||
<network type="private_network" range="dhcp"/>
|
||||
</system>
|
||||
|
||||
</scenario>
|
||||
Reference in New Issue
Block a user