aboutsummaryrefslogtreecommitdiffstats
path: root/hosts-config.yaml
diff options
context:
space:
mode:
authorDan Prince <dprince@redhat.com>2016-10-10 21:03:12 -0400
committerDan Prince <dprince@redhat.com>2016-10-13 14:15:54 -0400
commit9f8944111c280de877326471899be23caca9bb94 (patch)
tree9163ed71503d46ba125a3f8f353f9cb7144f4bb2 /hosts-config.yaml
parent8f5ebd08c4816849f959ea8471ebe956b1e1f601 (diff)
Split out hosts config deployment
This patch moves the hosts configuration into its own deployment. It will continue to use os-apply-config as something that is required early on in the bootstrapping (it needs to be configured before puppet runs for example). The motivation here is so we can refactor all-nodes-config.yaml to use a new hiera hook that that avoids os-apply-config entirely. Change-Id: Ib3e4380f205358b27d22a1102b663cf300b1ed86 Partial-bug: #1596373
Diffstat (limited to 'hosts-config.yaml')
-rw-r--r--hosts-config.yaml30
1 files changed, 30 insertions, 0 deletions
diff --git a/hosts-config.yaml b/hosts-config.yaml
new file mode 100644
index 00000000..df0addfd
--- /dev/null
+++ b/hosts-config.yaml
@@ -0,0 +1,30 @@
+heat_template_version: 2016-10-14
+description: 'All Hosts Config'
+
+parameters:
+ hosts:
+ type: comma_delimited_list
+
+resources:
+
+ hostsConfigImpl:
+ type: OS::Heat::StructuredConfig
+ properties:
+ group: os-apply-config
+ config:
+ hosts:
+ list_join:
+ - "\n"
+ - {get_param: hosts}
+
+outputs:
+ config_id:
+ description: The ID of the hostsConfigImpl resource.
+ value:
+ {get_resource: hostsConfigImpl}
+ hosts_entries:
+ description: |
+ The content that should be appended to your /etc/hosts if you want to get
+ hostname-based access to the deployed nodes (useful for testing without
+ setting up a DNS).
+ value: {get_attr: [hostsConfigImpl, config, hosts]}