Skip to content
This repository has been archived by the owner on Nov 30, 2017. It is now read-only.

Commit

Permalink
user instructions
Browse files Browse the repository at this point in the history
provide clearer instructions for creating a user account
dwradcliffe committed Mar 3, 2014

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent da1332f commit 1009178
Showing 1 changed file with 21 additions and 4 deletions.
25 changes: 21 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -6,6 +6,27 @@ Chef cookbooks and bootstrap scripts to configure and manage Rubygems.org AWS in

**Note: This repository requires Ruby 1.9.x.**

## User Accounts

Chef will create all the users from the data bag "users" (`chef/data_bags/users`). To add a new user, simply add a json file to that directory with the following schema:

```json
{
"id":"johnsmith",
"username": "johnsmith",
"comment": "John Smith",
"password": "$1$YqNay.kf$Hpl4FGvK8JkLddHOjNvPj.",
"admin" : true,
"ssh_keys": [
"ssh-rsa xxxxxxxxxxxxxxxxxxx johnsmith@example.com"
]
}
```

You can generate an encrypted password using `mkpasswd -m sha-512` or `openssl passwd -1`.

If you want your user added to the RubyGems.org production servers, complete these steps and send a pull request.

## Hacking

$ bundle install
@@ -23,10 +44,6 @@ To start and provision a VM, run: `vagrant up <name>`.

### Hacking on EC2

Add your user to the "users" databag (`chef/data_bags/users`).
You can look at the other users for the schema.
You can generate an encrypted password using `mkpasswd -m sha-512` or `openssl passwd -1`.

Boot EC2 instances and boostrap them:

$ knife bootstrap -d chef-solo -x $DEPLOY_USER --sudo $SERVER

0 comments on commit 1009178

Please sign in to comment.