[Crowbar] Modifying and Applying a Barclamp from the CLI
Michael Smalley
michaeljsmalley+crowbar at gmail.com
Fri Nov 11 15:49:16 CST 2011
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> 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/20111111/928ebd23/attachment.html
More information about the Crowbar
mailing list