From 2125a34b3eaffa0cde1936be0487c211356ea145 Mon Sep 17 00:00:00 2001 From: Yolanda Robla Mota Date: Mon, 3 Oct 2016 10:51:10 +0200 Subject: [PATCH] Add the ability to pass devuser password to DIB This can be useful to debug, when ssh is not available, but a console can be gained through ILO. Change-Id: Id1861792a7ca0b3fb87f0a06f96d4d0667f55615 --- manifests/bifrost.pp | 2 +- templates/bifrost/bifrost_global_vars.erb | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/manifests/bifrost.pp b/manifests/bifrost.pp index 1b5a7f4..c922729 100644 --- a/manifests/bifrost.pp +++ b/manifests/bifrost.pp @@ -29,7 +29,7 @@ class infracloud::bifrost ( $ipv4_gateway = '15.184.64.1', $ipv4_nameserver = '8.8.8.8', $ipv4_subnet_mask = '255.255.224.0', - + $dib_dev_user_password = undef, ) { include ::infracloud::params diff --git a/templates/bifrost/bifrost_global_vars.erb b/templates/bifrost/bifrost_global_vars.erb index 486b0c9..a8b0959 100644 --- a/templates/bifrost/bifrost_global_vars.erb +++ b/templates/bifrost/bifrost_global_vars.erb @@ -19,6 +19,9 @@ ironic_db_password: <%= @ironic_db_password %> dib_env_vars: DIB_INSTALLTYPE_simple_init: repo DIB_DEV_USER_USERNAME: "baremetal" +<% if @dib_dev_user_password != nil %> + DIB_DEV_USER_PASSWORD: "<=% @dib_dev_user_password -%>" +<% end %> DIB_DEV_USER_PWDLESS_SUDO: "Y" ELEMENTS_PATH: "/opt/stack/elements:/opt/project-config/nodepool/elements" extra_kernel_options: intel_iommu=off