aboutsummaryrefslogtreecommitdiff
path: root/manifests/subsystem
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2015-09-11 22:02:36 -0300
committerSilvio Rhatto <rhatto@riseup.net>2015-09-11 22:02:36 -0300
commit1564ca8593730f0cd5f4d69dcf5a860f73efccb4 (patch)
tree4dc3feec8631d15ea2c79772fc8abfe0e970d5ef /manifests/subsystem
parent60eef74e68f7e3c4ac6ed326a32a5ea0eab7faf4 (diff)
downloadpuppet-nodo-1564ca8593730f0cd5f4d69dcf5a860f73efccb4.tar.gz
puppet-nodo-1564ca8593730f0cd5f4d69dcf5a860f73efccb4.tar.bz2
Rename vserver to virtual
Diffstat (limited to 'manifests/subsystem')
-rw-r--r--manifests/subsystem/virtual/instance.pp (renamed from manifests/subsystem/vm/instance.pp)36
1 files changed, 18 insertions, 18 deletions
diff --git a/manifests/subsystem/vm/instance.pp b/manifests/subsystem/virtual/instance.pp
index a7281bf..726752f 100644
--- a/manifests/subsystem/vm/instance.pp
+++ b/manifests/subsystem/virtual/instance.pp
@@ -1,5 +1,5 @@
-# Define a vserver instance
-define nodo::subsystem::vm::instance(
+# Define a virtual server instance
+define nodo::subsystem::virtual::instance(
$context,
$distro = 'jessie',
$ensure = 'running',
@@ -109,13 +109,13 @@ define nodo::subsystem::vm::instance(
# Apply firewall rules just for running vservers
case $ensure {
'running': {
- firewall::vm::ssh { "$name":
+ firewall::virtual::ssh { "$name":
destination => "192.168.0.$context",
port_orig => "22$id",
port_dest => "22",
}
- firewall::vm::munin { "$name":
+ firewall::virtual::munin { "$name":
destination => "192.168.0.$context",
port_orig => "49$id",
port_dest => "49$id",
@@ -123,14 +123,14 @@ define nodo::subsystem::vm::instance(
if $proxy {
class {
- "firewall::vm::http": destination => "192.168.0.$context";
- "firewall::vm::https": destination => "192.168.0.$context";
+ "firewall::virtual::http": destination => "192.168.0.$context";
+ "firewall::virtual::https": destination => "192.168.0.$context";
}
}
if $puppetmaster {
class {
- "firewall::vm::puppetmaster":
+ "firewall::virtual::puppetmaster":
destination => "192.168.0.$context",
puppetmaster_port => $puppetmaster_port,
puppetmaster_nonssl_port => $puppetmaster_nonssl_port,
@@ -139,67 +139,67 @@ define nodo::subsystem::vm::instance(
if $gitd {
class {
- "firewall::vm::gitd": destination => "192.168.0.$context";
+ "firewall::virtual::gitd": destination => "192.168.0.$context";
}
}
if $icecast {
class {
- "firewall::vm::icecast": destination => "192.168.0.$context";
+ "firewall::virtual::icecast": destination => "192.168.0.$context";
}
}
if $mail {
class {
- "firewall::vm::mail": destination => "192.168.0.$context";
+ "firewall::virtual::mail": destination => "192.168.0.$context";
}
}
if $dns {
class {
- "firewall::vm::dns": destination => "192.168.0.$context";
+ "firewall::virtual::dns": destination => "192.168.0.$context";
}
}
if $tor {
class {
- "firewall::vm::tor": destination => "192.168.0.$context";
+ "firewall::virtual::tor": destination => "192.168.0.$context";
}
}
if $jabber {
class {
- "firewall::vm::jabber": destination => "192.168.0.$context";
+ "firewall::virtual::jabber": destination => "192.168.0.$context";
}
}
if $mumble {
class {
- "firewall::vm::mumble": destination => "192.168.0.$context";
+ "firewall::virtual::mumble": destination => "192.168.0.$context";
}
}
if $gobby {
class {
- "firewall::vm::gobby": destination => "192.168.0.$context";
+ "firewall::virtual::gobby": destination => "192.168.0.$context";
}
}
if $yacy {
class {
- "firewall::vm::yacy": destination => "192.168.0.$context";
+ "firewall::virtual::yacy": destination => "192.168.0.$context";
}
}
if $rsync {
class {
- "firewall::vm::rsync": destination => "192.168.0.$context";
+ "firewall::virtual::rsync": destination => "192.168.0.$context";
}
}
if $avahi {
class {
- "firewall::vm::mdns": destination => "192.168.0.$context";
+ "firewall::virtual::mdns": destination => "192.168.0.$context";
}
}
}