aboutsummaryrefslogtreecommitdiffstats
path: root/puppet
diff options
context:
space:
mode:
authorFeng Pan <fpan@redhat.com>2017-07-19 12:40:59 -0400
committerFeng Pan <fpan@redhat.com>2017-07-30 13:26:48 -0400
commitbaaad6f6e5fb15f131858ac0f49e02ec336118bc (patch)
treec5a233db47dfb3875a7193285f315eb7850b6f00 /puppet
parent747e941a9a36a21411449248d7cca712e1894737 (diff)
Add VPP and Honeycomb services (#104)
- Add VPP and honeycomb service - Add NeutronOverlayIPVersion setting for IPv6 vxlan tunnel endpoint Change-Id: If11092e6581445a70e63c8f6c48518698b3cc8fc Signed-off-by: Feng Pan <fpan@redhat.com>
Diffstat (limited to 'puppet')
-rw-r--r--puppet/compute-role.yaml3
-rw-r--r--puppet/controller-role.yaml1
-rw-r--r--puppet/services/etcd.yaml2
-rw-r--r--puppet/services/neutron-odl-honeycomb-agent.yaml74
-rw-r--r--puppet/services/neutron-plugin-ml2.yaml7
-rw-r--r--puppet/services/neutron-vpp-agent.yaml48
-rw-r--r--puppet/services/opendaylight-api.yaml9
-rw-r--r--puppet/services/vpp.yaml45
8 files changed, 186 insertions, 3 deletions
diff --git a/puppet/compute-role.yaml b/puppet/compute-role.yaml
index 45794c12..fff5c01c 100644
--- a/puppet/compute-role.yaml
+++ b/puppet/compute-role.yaml
@@ -426,6 +426,7 @@ resources:
- midonet_data # Optionally provided by AllNodesExtraConfig
- neutron_opencontrail_data # Optionally provided by ComputeExtraConfigPre
- cisco_aci_data # Optionally provided by ComputeExtraConfigPre
+ - common # provided by os-net-config
merge_behavior: deeper
datafiles:
service_names:
@@ -600,4 +601,4 @@ CTLPLANEIP,CTLPLANEHOST.DOMAIN,CTLPLANEHOST HOSTSSHPUBKEY"
nova_server_resource:
description: Heat resource handle for the Nova compute server
value:
- {get_resource: NovaCompute} \ No newline at end of file
+ {get_resource: NovaCompute}
diff --git a/puppet/controller-role.yaml b/puppet/controller-role.yaml
index 5593d15e..badab487 100644
--- a/puppet/controller-role.yaml
+++ b/puppet/controller-role.yaml
@@ -472,6 +472,7 @@ resources:
- cisco_n1kv_data # Optionally provided by ControllerExtraConfigPre
- midonet_data #Optionally provided by AllNodesExtraConfig
- cisco_aci_data # Optionally provided by ControllerExtraConfigPre
+ - common # provided by os-net-config
merge_behavior: deeper
datafiles:
service_names:
diff --git a/puppet/services/etcd.yaml b/puppet/services/etcd.yaml
index d2a0e302..bc9e0f5e 100644
--- a/puppet/services/etcd.yaml
+++ b/puppet/services/etcd.yaml
@@ -36,7 +36,7 @@ outputs:
etcd::etcd_name:
str_replace:
template:
- '"%{::fqdn_$NETWORK}"'
+ '%{::fqdn_$NETWORK}'
params:
$NETWORK: {get_param: [ServiceNetMap, EtcdNetwork]}
# NOTE: bind IP is found in Heat replacing the network name with the local node IP
diff --git a/puppet/services/neutron-odl-honeycomb-agent.yaml b/puppet/services/neutron-odl-honeycomb-agent.yaml
new file mode 100644
index 00000000..38308da7
--- /dev/null
+++ b/puppet/services/neutron-odl-honeycomb-agent.yaml
@@ -0,0 +1,74 @@
+heat_template_version: newton
+
+description: >
+ OpenStack Neutron Honeycomb agent configured with Puppet
+
+parameters:
+ ServiceNetMap:
+ default: {}
+ description: >
+ Mapping of service_name -> network name. Typically set via
+ parameter_defaults in the resource registry. This mapping overrides those
+ in ServiceNetMapDefaults.
+ type: json
+ DefaultPasswords:
+ default: {}
+ type: json
+ EndpointMap:
+ default: {}
+ description: Mapping of service endpoint -> protocol. Typically set
+ via parameter_defaults in the resource registry.
+ type: json
+ HoneycombUser:
+ description: Username for Honeycomb agent
+ type: string
+ default: 'admin'
+ HoneycombPassword:
+ description: Password for Honeycomb agent
+ type: string
+ hidden: true
+ default: 'admin'
+ HoneycombRestPort:
+ description: Port for Honeycomb REST interface to listen on.
+ type: number
+ default: 8183
+ HoneycombNetconfSSHPort:
+ description: Honeycomb Netconf SSH binding port.
+ type: number
+ default: 2831
+ OpenDaylightUsername:
+ default: 'admin'
+ description: The username for the opendaylight server.
+ type: string
+ OpenDaylightPassword:
+ default: 'admin'
+ type: string
+ description: The password for the opendaylight server.
+ hidden: true
+ OpenDaylightPort:
+ default: 8081
+ description: OpenDaylight service port
+ type: number
+
+outputs:
+ role_data:
+ description: Role data for Honeycomb agent service.
+ value:
+ service_name: neutron_honeycomb_agent
+ config_settings:
+ fdio::honeycomb::user: {get_param: HoneycombUser}
+ fdio::honeycomb::password: {get_param: HoneycombPassword}
+ fdio::honeycomb::rest_port: {get_param: HoneycombRestPort}
+ fdio::honeycomb::opendaylight_ip: "%{hiera('opendaylight_api_vip')}"
+ fdio::honeycomb::opendaylight_port: {get_param: OpenDaylightPort}
+ fdio::honeycomb::opendaylight_username: {get_param: OpenDaylightUsername}
+ fdio::honeycomb::opendaylight_password: {get_param: OpenDaylightPassword}
+ fdio::honeycomb::bind_ip: {get_param: [ServiceNetMap, HoneycombNetwork]}
+ fdio::honeycomb::node_id: '%{::fqdn}'
+ tripleo.neutron_honeycomb_agent.firewall_rules:
+ '142 neutron honeycomb agent':
+ dport:
+ - {get_param: HoneycombRestPort}
+ - {get_param: HoneycombNetconfSSHPort}
+ step_config: |
+ include ::tripleo::profile::base::neutron::agents::honeycomb
diff --git a/puppet/services/neutron-plugin-ml2.yaml b/puppet/services/neutron-plugin-ml2.yaml
index 3abd04f3..0046f698 100644
--- a/puppet/services/neutron-plugin-ml2.yaml
+++ b/puppet/services/neutron-plugin-ml2.yaml
@@ -60,6 +60,12 @@ parameters:
default: 'vxlan'
description: The tenant network type for Neutron.
type: comma_delimited_list
+ NeutronOverlayIPVersion:
+ default: "4"
+ description: IP version used for all overlay network endpoints.
+ type: string
+ constraints:
+ - allowed_values: ["4","6"]
resources:
NeutronBase:
@@ -85,6 +91,7 @@ outputs:
neutron::plugins::ml2::tunnel_id_ranges: {get_param: NeutronTunnelIdRanges}
neutron::plugins::ml2::vni_ranges: {get_param: NeutronVniRanges}
neutron::plugins::ml2::tenant_network_types: {get_param: NeutronNetworkType}
+ neutron::plugins::ml2::overlay_ip_version: {get_param: NeutronOverlayIPVersion}
step_config: |
include ::tripleo::profile::base::neutron::plugins::ml2
diff --git a/puppet/services/neutron-vpp-agent.yaml b/puppet/services/neutron-vpp-agent.yaml
new file mode 100644
index 00000000..3c51c90f
--- /dev/null
+++ b/puppet/services/neutron-vpp-agent.yaml
@@ -0,0 +1,48 @@
+heat_template_version: newton
+
+description: >
+ OpenStack Neutron ML2/VPP agent configured with Puppet
+
+parameters:
+ ServiceNetMap:
+ default: {}
+ description: >
+ Mapping of service_name -> network name. Typically set via
+ parameter_defaults in the resource registry. This mapping overrides those
+ in ServiceNetMapDefaults.
+ type: json
+ DefaultPasswords:
+ default: {}
+ type: json
+ EndpointMap:
+ default: {}
+ description: Mapping of service endpoint -> protocol. Typically set
+ via parameter_defaults in the resource registry.
+ type: json
+ NeutronVPPAgentPhysnets:
+ description: >
+ List of <physical_network>:<VPP Interface>
+ Example: "physnet1:GigabitEthernet2/2/0,physnet2:GigabitEthernet2/3/0"
+ type: comma_delimited_list
+ default: ""
+
+resources:
+
+ NeutronBase:
+ type: ./neutron-base.yaml
+ properties:
+ ServiceNetMap: {get_param: ServiceNetMap}
+ DefaultPasswords: {get_param: DefaultPasswords}
+ EndpointMap: {get_param: EndpointMap}
+
+outputs:
+ role_data:
+ description: Role data for the Neutron ML2/VPP agent service.
+ value:
+ service_name: neutron_vpp_agent
+ config_settings:
+ map_merge:
+ - get_attr: [NeutronBase, role_data, config_settings]
+ - tripleo::profile::base::neutron::agents::vpp::physnet_mapping: {get_param: NeutronVPPAgentPhysnets}
+ step_config: |
+ include ::tripleo::profile::base::neutron::agents::vpp
diff --git a/puppet/services/opendaylight-api.yaml b/puppet/services/opendaylight-api.yaml
index 6882aeff..6bd6b57a 100644
--- a/puppet/services/opendaylight-api.yaml
+++ b/puppet/services/opendaylight-api.yaml
@@ -32,6 +32,10 @@ parameters:
OpenDaylightApiVirtualIP:
type: string
default: ''
+ OpenDaylightHostconfURI:
+ description: URI for neutron hostconfig in OpenDaylight.
+ type: string
+ default: ''
EndpointMap:
default: {}
description: Mapping of service endpoint -> protocol. Typically set
@@ -60,13 +64,16 @@ outputs:
opendaylight::enable_dhcp: {get_param: OpenDaylightEnableDHCP}
opendaylight::odl_bind_ip: {get_param: [ServiceNetMap, OpendaylightApiNetwork]}
opendaylight::nb_connection_protocol: {get_param: OpenDaylightConnectionProtocol}
+ neutron::plugins::ml2::opendaylight::odl_hostconf_uri: {get_param: OpenDaylightHostconfURI}
tripleo.opendaylight_api.firewall_rules:
'137 opendaylight api':
dport:
- {get_param: OpenDaylightPort}
+ - 2550
+ - 6633
- 6640
- 6653
- - 2550
+ - 8101
step_config: |
include tripleo::profile::base::neutron::opendaylight
upgrade_tasks:
diff --git a/puppet/services/vpp.yaml b/puppet/services/vpp.yaml
new file mode 100644
index 00000000..37cb0a81
--- /dev/null
+++ b/puppet/services/vpp.yaml
@@ -0,0 +1,45 @@
+heat_template_version: newton
+
+description: >
+ Vpp service configured with Puppet
+
+parameters:
+ ServiceNetMap:
+ default: {}
+ description: Mapping of service_name -> network name. Typically set
+ via parameter_defaults in the resource registry. This
+ mapping overrides those in ServiceNetMapDefaults.
+ type: json
+ DefaultPasswords:
+ default: {}
+ type: json
+ EndpointMap:
+ default: {}
+ description: Mapping of service endpoint -> protocol. Typically set
+ via parameter_defaults in the resource registry.
+ type: json
+ VppCpuMainCore:
+ default: ''
+ description: VPP main thread core pinning.
+ type: string
+ VppCpuCorelistWorkers:
+ default: ''
+ description: List of cores for VPP worker thread pinning
+ type: string
+ MonitoringSubscriptionVpp:
+ default: 'overcloud-vpp'
+ type: string
+
+outputs:
+ role_data:
+ description: Role data for the Vpp role.
+ value:
+ service_name: vpp
+ monitoring_subscription: {get_param: MonitoringSubscriptionVpp}
+ config_settings:
+ # Core pinning is being set in controller_extraconfig and compute_extraconfig to allow
+ # role specifc settings
+ #fdio::vpp_cpu_main_core: {get_param: VppCpuMainCore}
+ #fdio::vpp_cpu_corelist_workers: {get_param: VppCpuCorelistWorkers}
+ step_config: |
+ include ::tripleo::profile::base::vpp