This commit is contained in:
Henry Wang 2019-12-19 13:25:29 +08:00
parent ad647d408b
commit 02a585c701

View File

@ -6,15 +6,16 @@ class controlm::controlm_agent::install inherits controlm::controlm_agent {
augeas { 'controlm': augeas { 'controlm':
context => '/files/etc/services', context => '/files/etc/services',
changes => [ changes => [
"set service-name[port = '${s2a_port}'][protocol = 'udp'][alias = 'test'] ctmagent", "set service-name[port = '${s2a_port}'][protocol = 'udp'] ctmagent",
# "set service-name[port = '${s2a_port}'][protocol = 'udp']/ #comment 'Henry123']", # "set service-name[port = '${s2a_port}'][protocol = 'udp']/ #comment 'Henry123']",
"set service-name[port = '${s2a_port}'][protocol = 'tcp'][alias = 'test'] ctmagent", "set service-name[port = '${s2a_port}'][protocol = 'tcp'] ctmagent",
# "set service-name[port = '${s2a_port}'][protocol = 'tcp']/ #comment 'Henry234']", # "set service-name[port = '${s2a_port}'][protocol = 'tcp']/ #comment 'Henry234']",
"set service-name[port = '${a2s_port}'][protocol = 'udp'][alias = 'test'] ctmagent", "set service-name[port = '${a2s_port}'][protocol = 'udp'] ctmagent",
# "set service-name[port = '${a2s_port}'][protocol = 'udp']/ #comment 'Henry345'", # "set service-name[port = '${a2s_port}'][protocol = 'udp']/ #comment 'Henry345'",
"set service-name[port = '${a2s_port}'][protocol = 'tcp'][alias = 'test'] ctmagent", "set service-name[port = '${a2s_port}'][protocol = 'tcp'] ctmagent",
# "set service-name[port = '${a2s_port}'][protocol = 'tcp']/ #comment 'Henry456'", # "set service-name[port = '${a2s_port}'][protocol = 'tcp']/ #comment 'Henry456'",
],
force => true,
} }