Skip to content
This repository has been archived by the owner on Feb 29, 2024. It is now read-only.

Commit

Permalink
Merge "Simplify qdrouterd and snmp service templates"
Browse files Browse the repository at this point in the history
  • Loading branch information
Zuul authored and openstack-gerrit committed May 24, 2021
2 parents c1d8841 + 85bc699 commit 90f3f42
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 9 deletions.
4 changes: 1 addition & 3 deletions deployment/qdr/qdrouterd-container-puppet.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@ parameters:
type: string

resources:

ContainersCommon:
type: ../containers-common.yaml

Expand Down Expand Up @@ -122,8 +121,7 @@ outputs:
volumes:
list_concat:
- {get_attr: [ContainersCommon, volumes]}
-
- /var/lib/kolla/config_files/qdrouterd.json:/var/lib/kolla/config_files/config.json:ro
- - /var/lib/kolla/config_files/qdrouterd.json:/var/lib/kolla/config_files/config.json:ro
- /var/lib/config-data/puppet-generated/qdrouterd:/var/lib/kolla/config_files/src:ro
- /var/lib/qdrouterd:/var/lib/qdrouterd:z
- /var/log/containers/qdrouterd:/var/log/qdrouterd:z
Expand Down
13 changes: 7 additions & 6 deletions deployment/snmp/snmp-baremetal-puppet.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,8 @@ parameters:
will be taken.
type: string
conditions:
snmpd_network_unset: {equals : [{get_param: SnmpdIpSubnet}, '']}
snmpd_network_set:
not: {equals : [{get_param: SnmpdIpSubnet}, '']}

outputs:
role_data:
Expand All @@ -60,7 +61,11 @@ outputs:
service_name: snmp
firewall_rules:
if:
- snmpd_network_unset
- snmpd_network_set
- '124 snmp':
dport: 161
proto: 'udp'
source: {get_param: SnmpdIpSubnet}
- map_merge:
repeat:
for_each:
Expand All @@ -74,10 +79,6 @@ outputs:
dport: 161
proto: 'udp'
source: <%net_cidr%>
- '124 snmp':
dport: 161
proto: 'udp'
source: {get_param: SnmpdIpSubnet}
config_settings:
tripleo::profile::base::snmp::snmpd_user: {get_param: SnmpdReadonlyUserName}
tripleo::profile::base::snmp::snmpd_password: {get_param: SnmpdReadonlyUserPassword}
Expand Down

0 comments on commit 90f3f42

Please sign in to comment.