[Crowbar] Modifying and Applying a Barclamp from the CLI
Andi_Abes at Dell.com
Andi_Abes at Dell.com
Mon Nov 14 16:05:14 CST 2011
Hmm.. it isn't actually used. The intent was to put the creds in a central place so it can be used for any OS installed. I'll clean that up to avoid confusion.
a.
From: crowbar-bounces On Behalf Of Michael Smalley
Sent: Monday, November 14, 2011 4:52 PM
To: crowbar
Subject: Re: [Crowbar] Modifying and Applying a Barclamp from the CLI
Andi,
Thanks, I'll give this a shot tomorrow morning. I'm curious though, if this (/opt/dell/bin/crowbar provisioner proposal show default) handles the Ubuntu password, then what does the password that is set in the ubuntu_install barclamp do (or not do)?
Thanks,
Mike
On Mon, Nov 14, 2011 at 4:29 PM, <Andi_Abes at dell.com<mailto:Andi_Abes at dell.com>> wrote:
I'm afraid I mislead you before.
The credentials for Ubuntu are in the provisioner proposal. The values are specified using:
"default_user": "crowbar",
"default_password_hash": "$1$BDC3UwFr$/VqOWN1Wi6oM0jiMOjaPb.",
You'd use md5pass to create the hash manually or optionally, you can specify a clear text password using the default_password .
Hth,
a.
From: crowbar-bounces On Behalf Of Michael Smalley
Sent: Monday, November 14, 2011 4:07 PM
To: crowbar
Subject: Re: [Crowbar] Modifying and Applying a Barclamp from the CLI
I'm trying to apply a similar process to setting the default Ubuntu password (as detailed in the Ubuntu section of the wiki page I've put together) https://github.com/dellcloudedge/crowbar/wiki/Username-and-Password-Customizations#Ubuntu
It doesn't appear to be working. I'm in a situation where I can go through the entire process, but when allocating a new node, it gets the old crowbar/crowbar username/password combination (regardless of my changes to the ubuntu_install barclamp).
Any ideas?
On Mon, Nov 14, 2011 at 11:58 AM, Michael Smalley <michaeljsmalley+crowbar at gmail.com<mailto:michaeljsmalley%2Bcrowbar at gmail.com><mailto:michaeljsmalley%2Bcrowbar at gmail.com<mailto:michaeljsmalley%252Bcrowbar at gmail.com>>> wrote:
Good news. With the newest ISO that Rob uploaded on Friday (openstack111111.iso) I've got a process down for changing the password on the Crowbar admin web interface, and it works. I've documented the process at https://github.com/dellcloudedge/crowbar/wiki/Username-and-Password-Customizations. For what it's worth, this process did not work with the old ISO (openstack111014).
Thanks,
Mike
On Sat, Nov 12, 2011 at 12:42 AM, <Gregory_Althaus at dell.com<mailto:Gregory_Althaus at dell.com><mailto:Gregory_Althaus at dell.com<mailto:Gregory_Althaus at dell.com>>> wrote:
You are a really trooper on this. I'll try and it and fix what we broke.
Thanks,
Greg
From: crowbar-bounces On Behalf Of Michael Smalley
Sent: Friday, November 11, 2011 3:49 PM
To: crowbar
Subject: Re: [Crowbar] Modifying and Applying a Barclamp from the CLI
I followed your instructions, and tried to change the crowbar password, to no avail (even after running chef-client after committing). It changes it in the proposal, but the web interface is only accessible with the default password.
On Fri, Nov 11, 2011 at 3:11 PM, <Gregory_Althaus at dell.com<mailto:Gregory_Althaus at dell.com><mailto:Gregory_Althaus at dell.com<mailto:Gregory_Althaus at dell.com>><mailto:Gregory_Althaus at dell.com<mailto:Gregory_Althaus at dell.com><mailto:Gregory_Althaus at dell.com<mailto:Gregory_Althaus at dell.com>>>> wrote:
You syntax is correct and things were probably applied. The crowbar barclamp doesn't have much post install information in it.
Try it with dns with adding a new static name/ip map. Or with network and change the mode from single to dual (might loss connectivity with this change).
Oh - wait. You did it wrong.
You do this:
crowbar crowbar proposal show default > file.json
vim file.json
crowbar crowbar proposal edit default -file=file.json
crowbar crowbar proposal commit default
You were editing the base template files. These are "cloned" and given an id when they are actually instantiated in the system.
crowbar crowbar proposal create newname
will create a new proposal of type crowbar.
Replace the second crowbar in all the commands with the barclamp you want to operate on.
Thanks,
Greg
From: crowbar-bounces On Behalf Of Michael Smalley
Sent: Friday, November 11, 2011 1:42 PM
To: crowbar
Subject: [Crowbar] Modifying and Applying a Barclamp from the CLI
I think I'm getting warmer with the exact process required for modifying barclamps from the command-line.
I have edited the json, imported the edits, and committed these edits. The changes then show in the Crowbar WebUI under Proposals, but they don't Apply. Is there a last step required to apply the committed change that I'm skipping? Also, If I'm syntacticly incorrect in any way, and one of the Dell folks can correct me, by all means, please do.
Example: Changing the Crowbar WebUI password via the CLI
------------------------------------------------------------------------
# Edit the barclamp in Vim, changing the password.
vim /opt/dell/barclamps/crowbar/chef/data_bags/crowbar/bc-template-crowbar.json
# Import the edited json file
/opt/dell/bin/crowbar crowbar proposal --file=/opt/dell/barclamps/crowbar/chef/data_bags/crowbar/bc-template-crowbar.json edit default
# Commit the changes
/opt/dell/bin/crowbar crowbar proposal commit default
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.us.dell.com/pipermail/crowbar/attachments/20111114/3870b6b2/attachment.html
More information about the Crowbar
mailing list