summaryrefslogtreecommitdiffstats
path: root/type/cntt/baremetal/bootactions
diff options
context:
space:
mode:
authorKaspars Skels <kaspars.skels@att.com>2019-08-15 10:08:21 -0500
committerKaspars Skels <kaspars.skels@att.com>2019-08-15 17:52:00 -0500
commitda8bd0499c80bc576531189ef35d250ca4ed1689 (patch)
tree60f1c3b5eb3b337d784f62f09f89f2c4734a5cd5 /type/cntt/baremetal/bootactions
parentd62d663a2daaf301c6ca5ae7d314e61b904af575 (diff)
Move ceph to SSD disk and CNTT type polish
Change-Id: Id661d4107efac128fd973c98f06805c44083e93f Signed-off-by: Kaspars Skels <kaspars.skels@att.com>
Diffstat (limited to 'type/cntt/baremetal/bootactions')
-rw-r--r--type/cntt/baremetal/bootactions/promjoin.yaml32
1 files changed, 32 insertions, 0 deletions
diff --git a/type/cntt/baremetal/bootactions/promjoin.yaml b/type/cntt/baremetal/bootactions/promjoin.yaml
new file mode 100644
index 0000000..1178c10
--- /dev/null
+++ b/type/cntt/baremetal/bootactions/promjoin.yaml
@@ -0,0 +1,32 @@
+---
+# This file defines a boot action which is responsible for fetching the node's
+# promjoin script from the promenade API. This is the script responsible for
+# installing kubernetes on the node and joining the kubernetes cluster.
+# #GLOBAL-CANDIDATE#
+schema: 'drydock/BootAction/v1'
+metadata:
+ schema: 'metadata/Document/v1'
+ name: promjoin
+ storagePolicy: 'cleartext'
+ layeringDefinition:
+ abstract: false
+ layer: site
+ labels:
+ application: 'drydock'
+data:
+ signaling: false
+ # TODO(alanmeadows) move what is global about this document
+ assets:
+ - path: /opt/promjoin.sh
+ type: file
+ permissions: '555'
+ # The ip= parameter must match the MaaS network name of the network used
+ # to contact kubernetes. With a standard, reference Airship deployment where
+ # L2 networks are shared between all racks, the network name (i.e. calico)
+ # should be correct.
+ location: promenade+http://promenade-api.ucp.svc.cluster.local/api/v1.0/join-scripts?design_ref={{ action.design_ref | urlencode }}&hostname={{ node.hostname }}&ip={{ node.network.private.ip }}{% for k, v in node.labels.items() %}&labels.dynamic={{ k }}={{ v }}{% endfor %}
+ location_pipeline:
+ - template
+ data_pipeline:
+ - utf8_decode
+...