From d5cd18d3c5e1a54cb15be39e421f98fd01e1a99c Mon Sep 17 00:00:00 2001 From: Steve Baker Date: Thu, 8 Dec 2016 14:44:35 +1300 Subject: Introduce role-specific NodeUserData, use for docker Currently when the docker environments are invoked, every node has the boot script run which replaces os-collect-config with the heat-agents container. This should only be happening on Compute nodes currently, and each role will be converted to heat-agents one at a time. This change implements a role-specific NodeUserData resource and uses that mechanism to run docker/firstboot/install_docker_agents.yaml only on Compute nodes. Change-Id: Id81811dbcaf0e661c3980aa25f3ca80db5ef0954 --- puppet/compute-role.yaml | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'puppet/compute-role.yaml') diff --git a/puppet/compute-role.yaml b/puppet/compute-role.yaml index 30a64835..2eb287cd 100644 --- a/puppet/compute-role.yaml +++ b/puppet/compute-role.yaml @@ -162,6 +162,8 @@ resources: type: multipart - config: {get_resource: NodeUserData} type: multipart + - config: {get_resource: RoleUserData} + type: multipart # Creates the "heat-admin" user if configured via the environment # Should return a OS::Heat::MultipartMime reference via OS::stack_id @@ -173,6 +175,11 @@ resources: NodeUserData: type: OS::TripleO::NodeUserData + # For optional operator role-specific userdata + # Should return a OS::Heat::MultipartMime reference via OS::stack_id + RoleUserData: + type: OS::TripleO::Compute::NodeUserData + ExternalPort: type: OS::TripleO::Compute::Ports::ExternalPort properties: -- cgit 1.2.3-korg