Skip to content

Commit

Permalink
Change default puppet server
Browse files Browse the repository at this point in the history
  • Loading branch information
edestecd committed May 12, 2015
1 parent 554b04a commit dfefff3
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
8 changes: 7 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,18 @@

## Usage

### One Line Install/Configure/Start Puppet
### One Line Install/Configure/Start Puppet (test)

```shell
\curl -sSL https://git.io/jLJU | sudo bash
```

### One Line Install/Configure/Start Puppet (production)

```shell
\curl -sSL https://git.io/jLJU | sudo bash -s '' production
```

### Advanced Install/Configure/Start Puppet

```shell
Expand Down
7 changes: 4 additions & 3 deletions configure.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,13 @@
#
set -e

PUPPET_ENVIRONMENT=${PUPPET_ENVIRONMENT:-"staging"}
PUPPET_ENVIRONMENT=${PUPPET_ENVIRONMENT:-"test"}
PUPPET_ROOT_GROUP=${PUPPET_ROOT_GROUP:-"root"}

case "${PUPPET_ENVIRONMENT}" in
staging) PUPPET_SERVER=${PUPPET_SERVER:-"pupt001.projectdragonfly.org"} ;;
production) PUPPET_SERVER=${PUPPET_SERVER:-"pupp001.projectdragonfly.org"} ;;
test) PUPPET_SERVER=${PUPPET_SERVER:-"uitlpupt01.mcs.miamioh.edu"} ;;
staging) PUPPET_SERVER=${PUPPET_SERVER:-"uitlpupt01.mcs.miamioh.edu"} ;;
production) PUPPET_SERVER=${PUPPET_SERVER:-"uitlpupp01.mcs.miamioh.edu"} ;;
*)
echo "Unknown/Unsupported PUPPET_ENVIRONMENT." >&2
exit 1
Expand Down

0 comments on commit dfefff3

Please sign in to comment.