Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New Cuke Steps #95

Closed
zpatten opened this issue Jan 29, 2013 · 3 comments
Closed

New Cuke Steps #95

zpatten opened this issue Jan 29, 2013 · 3 comments

Comments

@zpatten
Copy link
Collaborator

zpatten commented Jan 29, 2013

Since the docs are a bit out of date (we'll have them updated soon) I wanted to post about the new steps:

  Background:
    * I have a server called "users"
    * "users" is running "ubuntu" "lucid"
    * "users" should be persistent
    * "users" has been provisioned
    * all of the cookbooks in "./cookbooks" have been uploaded
    * all of the cookbooks in "./site-cookbooks" have been uploaded
    * the following environment has been uploaded:
      | environment | environment_path |
      | *.rb | ./environments/ |
    * the following roles have been updated:
      | role | role_path |
      | *.rb | ./roles/ |
    * the following databags have been updated:
      | databag | databag_path |
      | users | ./data_bags/users |
    * the "base" role has been added to the "users" run list
    * "users" is in the "staging" environment
    * the chef-client has been run on "users"
    * I ssh to "users" with the following credentials:
      | username | keyfile |
      | $lxc$ | $lxc$ |

To load all of your chef-repo cookbooks:

    * all of the cookbooks in "./cookbooks" have been uploaded

If you use librarian; load your site-cookbooks:

    * all of the cookbooks in "./site-cookbooks" have been uploaded

Push all of your chef-repo environments:
(you can put any filename or glob in the "environment" table field to control loading singular items or multiple)

    * the following environment has been uploaded:
      | environment | environment_path |
      | *.rb | ./environments/ |

Push all of your chef-repo roles:
(you can put any filename or glob in the "role" table field to control loading singular items or multiple)

    * the following roles have been updated:
      | role | role_path |
      | *.rb | ./roles/ |

Push all items in one of your chef-repo data bag:

    * the following databags have been updated:
      | databag | databag_path |
      | users | ./data_bags/users |

SSH macros; no more messing with keyfiles and usernames if you want to SSH in as the root user (the default LXC user). The $lxc$ macros are replaced with the appropriate username and keyfile for the LXC user defined in your config. Note you can not change this user after you setup your test lab. If you want to change this user you'll need to re-create your lab. Also changing of these users yet has not been fully tested as of yet; attempt at your own peril.

    * I ssh to "users" with the following credentials:
      | username | keyfile |
      | $lxc$ | $lxc$ |
@pikesley
Copy link
Collaborator

Can't believe I've not run up against this before, but here's the thing: can I set attributes on a node? I need to set "node['xml']['packages']" prior to the chef-client run. Am I missing something obvious?

@pikesley
Copy link
Collaborator

Oh no wait, I can use a role. Derp.

As you were.

@zpatten
Copy link
Collaborator Author

zpatten commented Feb 13, 2013

:-)
On Feb 13, 2013 9:19 AM, "Sam Pikesley" notifications@github.com wrote:

Oh no wait, I can use a role. Derp.

As you were.


Reply to this email directly or view it on GitHubhttps://github.com//issues/95#issuecomment-13505581.

@zpatten zpatten closed this as completed Apr 6, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants