wombat-cli 0.3.1 → 0.3.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +0 -1
- data/CHANGELOG.md +21 -0
- data/README.md +56 -20
- data/generator_files/wombat.yml +67 -0
- data/lib/wombat/cli.rb +1 -1
- data/lib/wombat/deploy.rb +1 -1
- data/lib/wombat/version.rb +1 -1
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 24513ed8218b0ec591f138d605341cd0ab9da123
|
4
|
+
data.tar.gz: c4a4c9604cce41aac08b8577981460be4284abdb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e9146ee47ac655aefbc1dfdc8bf51db8ce1666cc6ec4dc844d215dc1e10e4356e26195148be71f71e9ec1b93ac4a8bb30f998e0a50dc16de040dd77c7ffa097f
|
7
|
+
data.tar.gz: e7f413cdbd2e2a67be729bb5c9cfece927c114582a492b07497b7f0160b862722a5f020f0eb2d1e31b1d2b3bb47ce616e5a362a6b7eacbc2306a43c326573350
|
data/.gitignore
CHANGED
data/CHANGELOG.md
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
# Change Log
|
2
|
+
|
3
|
+
## [0.3.2](https://github.com/chef-cft/wombat/tree/0.3.2) (2016-11-14)
|
4
|
+
[Full Changelog](https://github.com/chef-cft/wombat/compare/v0.3.1...0.3.2)
|
5
|
+
|
6
|
+
**Merged pull requests:**
|
7
|
+
|
8
|
+
- Readme badge hotfix [\#251](https://github.com/chef-cft/wombat/pull/251) ([cheeseplus](https://github.com/cheeseplus))
|
9
|
+
- Fix examples, update readme [\#247](https://github.com/chef-cft/wombat/pull/247) ([cheeseplus](https://github.com/cheeseplus))
|
10
|
+
|
11
|
+
## [v0.3.1](https://github.com/chef-cft/wombat/tree/v0.3.1) (2016-11-04)
|
12
|
+
[Full Changelog](https://github.com/chef-cft/wombat/compare/v0.3.0...v0.3.1)
|
13
|
+
|
14
|
+
**Merged pull requests:**
|
15
|
+
|
16
|
+
- 0.3.1 release [\#246](https://github.com/chef-cft/wombat/pull/246) ([cheeseplus](https://github.com/cheeseplus))
|
17
|
+
- Log parsing, like honeybader, does not give... [\#245](https://github.com/chef-cft/wombat/pull/245) ([cheeseplus](https://github.com/cheeseplus))
|
18
|
+
|
19
|
+
|
20
|
+
|
21
|
+
\* *This Change Log was automatically generated by [github_changelog_generator](https://github.com/skywinder/Github-Changelog-Generator)*
|
data/README.md
CHANGED
@@ -1,6 +1,9 @@
|
|
1
|
+
[![Gem Version](https://badge.fury.io/rb/wombat-cli.svg)](http://badge.fury.io/rb/wombat-cli)
|
2
|
+
|
1
3
|
[![Stories in Ready](https://badge.waffle.io/chef-cft/wombat.png?label=ready&title=Ready)](https://waffle.io/chef-cft/wombat)
|
2
|
-
|
3
|
-
|
4
|
+
|
5
|
+
# Wombat
|
6
|
+
Wombat (`wombat-cli`) is a gem that builds and creates demo environments using cloud-specific deployment
|
4
7
|
tools like CloudFormation. The demo environments are comprised of instances built
|
5
8
|
from the included packer templates:
|
6
9
|
|
@@ -11,28 +14,56 @@ from the included packer templates:
|
|
11
14
|
* _N_ Infrastructure Nodes
|
12
15
|
* _N_ Windows Workstation
|
13
16
|
|
14
|
-
|
15
|
-
|
17
|
+
## Pre-requisites
|
18
|
+
|
19
|
+
We'll need a few things before we can get started with Wombat.
|
20
|
+
|
21
|
+
##### Install and Configure ChefDK
|
22
|
+
|
23
|
+
Follow the instructions at https://docs.chef.io/install_dk.html to install and configure ChefDK (0.19.6+) as your default version of Ruby.
|
24
|
+
|
25
|
+
*Note:* If not using ChefDK, Ruby 2.3+ is required.
|
26
|
+
|
27
|
+
##### Install Packer
|
28
|
+
|
29
|
+
Downloads are here: https://www.packer.io/downloads.html. The binary must be in $PATH for `wombat build`
|
16
30
|
|
17
31
|
##### Download your Automate license key
|
18
32
|
Automate requires a valid license to activate successfully. **If you do
|
19
33
|
not have a license key, you can request one from your CHEF account
|
20
34
|
representative.**
|
21
35
|
|
22
|
-
You will need to have the `delivery.license` file present inside `
|
23
|
-
directory.
|
36
|
+
You will need to have the `delivery.license` file present inside the `files/`
|
37
|
+
directory of your wombat project.
|
24
38
|
|
25
|
-
|
39
|
+
## Usage
|
26
40
|
|
27
|
-
|
41
|
+
### From Rubygems
|
28
42
|
|
29
|
-
|
43
|
+
If you are a developer or you prefer to install from Rubygems, we've got you covered.
|
30
44
|
|
31
|
-
|
45
|
+
Add Wombat to your repository's `Gemfile`:
|
32
46
|
|
33
|
-
|
47
|
+
```ruby
|
48
|
+
gem 'wombat-cli'
|
49
|
+
```
|
34
50
|
|
35
|
-
|
51
|
+
*Note:* if using Bundler, make sure to `bundle install` and prefix commands as appropriate, ex `bundle exec wombat`
|
52
|
+
|
53
|
+
|
54
|
+
Or run it as a standalone:
|
55
|
+
|
56
|
+
```shell
|
57
|
+
$ gem install wombat-cli
|
58
|
+
```
|
59
|
+
|
60
|
+
##### Get Started with Wombat
|
61
|
+
|
62
|
+
```
|
63
|
+
$ wombat init
|
64
|
+
```
|
65
|
+
|
66
|
+
This will generate a wombat skeleton project and example configuration file `wombat.yml`
|
36
67
|
|
37
68
|
*NOTE:* workstation-passwd must meet the minimum Microsoft [Complexity Requirements](https://technet.microsoft.com/en-us/library/hh994562(v=ws.11).aspx)
|
38
69
|
|
@@ -42,13 +73,13 @@ Create a wombat.yml - there is an example `wombat.example.yml` for reference and
|
|
42
73
|
|
43
74
|
```
|
44
75
|
# build one or more templates
|
45
|
-
$
|
76
|
+
$ wombat build [-o BUILDER] TEMPLATE [TEMPLATE2]
|
46
77
|
|
47
78
|
# build all templates (sequentially)
|
48
|
-
$
|
79
|
+
$ wombat build [-o BUILDER]
|
49
80
|
|
50
81
|
# build all images (parallel)
|
51
|
-
$
|
82
|
+
$ wombat build [-o BUILDER] --parallel
|
52
83
|
```
|
53
84
|
|
54
85
|
*NOTE:* If the builder is not provided it defaults to `amazon-ebs`
|
@@ -63,7 +94,7 @@ Upload the created template from the `cloudformation` directory.
|
|
63
94
|
|
64
95
|
```
|
65
96
|
# Deploy CloudFormation template
|
66
|
-
$
|
97
|
+
$ wombat deploy --update-lock --update-template
|
67
98
|
==> Updating wombat.lock
|
68
99
|
==> Generate CloudFormation JSON: STACK.json
|
69
100
|
==> Creating CloudFormation stack
|
@@ -72,19 +103,24 @@ Created: arn:aws:cloudformation:us-east-1:862552916454:stack/STACK/2160c580-713e
|
|
72
103
|
|
73
104
|
```
|
74
105
|
# Deploy an already generated template (pre-existing template)
|
75
|
-
|
106
|
+
# where STACK is the name of the template (w/o file extention) in the `stack_dir`
|
107
|
+
wombat deploy STACK
|
76
108
|
```
|
77
109
|
|
78
|
-
*NOTE:* If the cloud is not provided it defaults to `aws`
|
79
|
-
|
80
110
|
##### Login to Windows Workstation
|
81
111
|
|
82
112
|
```
|
83
113
|
# Get Windows Workstation(s) IP(s)
|
84
|
-
|
114
|
+
# where STACK is the name of the running CloudFormation stack
|
115
|
+
$ wombat outputs STACK
|
85
116
|
WindowsWorkstation (i-xxxxxxxx) => XX.XXX.XX.XXX
|
86
117
|
```
|
87
118
|
|
119
|
+
## TODO
|
120
|
+
|
121
|
+
* Complete support for Azure
|
122
|
+
* Complete support for Google Cloud Engine
|
123
|
+
|
88
124
|
From the AWS CloudFormation UI, select the Outputs tab for the desired stack.
|
89
125
|
Use an RDP compatible client to login to the workstation with the embedded credentials.
|
90
126
|
|
@@ -0,0 +1,67 @@
|
|
1
|
+
---
|
2
|
+
name: wombat
|
3
|
+
# Uncomment domain_prefix if you wish to prepend your generated domain.
|
4
|
+
# Ex: The below example would create foo-chef.animals.biz.
|
5
|
+
# domain_prefix: foo-
|
6
|
+
domain: animals.biz
|
7
|
+
enterprise: mammals
|
8
|
+
org: marsupials
|
9
|
+
certs: ['automate', 'chef', 'compliance']
|
10
|
+
ttl: 6
|
11
|
+
linux: ubuntu
|
12
|
+
version: 0.2.1
|
13
|
+
products:
|
14
|
+
chef: stable-latest
|
15
|
+
chef-server: stable-latest
|
16
|
+
chefdk: stable-latest
|
17
|
+
compliance: stable-latest
|
18
|
+
automate: stable-latest
|
19
|
+
push-jobs-server: stable-latest
|
20
|
+
manage: stable-latest
|
21
|
+
build-nodes:
|
22
|
+
count: 1
|
23
|
+
workstations:
|
24
|
+
platform: windows
|
25
|
+
# Must meet the minimum Microsoft Complexity Requirements
|
26
|
+
# https://technet.microsoft.com/en-us/library/hh994562(v=ws.11).aspx)
|
27
|
+
password: 'ZL9@T40BTmXhZ'
|
28
|
+
count: 1
|
29
|
+
infranodes:
|
30
|
+
# Add a list of infrastructure nodes here with their associated run list to have these nodes precreated on the Chef Server
|
31
|
+
# Note: the cookbook content won't be automatically uploaded, only the node object will be created with the run list added,
|
32
|
+
# if the content doesn't exist at the first checkin the chef-client run will fail.
|
33
|
+
# acceptance:
|
34
|
+
# platform: windows
|
35
|
+
# environment: web-acceptance
|
36
|
+
# run_list:
|
37
|
+
# - recipe[bacon::chewy]
|
38
|
+
# delivered:
|
39
|
+
# environment: web-delivered
|
40
|
+
# run_list:
|
41
|
+
# - recipe[bacon::crispy]
|
42
|
+
conf:
|
43
|
+
key_dir: 'keys'
|
44
|
+
cookbook_dir: 'cookbooks'
|
45
|
+
packer_dir: 'packer'
|
46
|
+
template_dir: 'templates'
|
47
|
+
log_dir: 'logs'
|
48
|
+
stack_dir: 'stacks'
|
49
|
+
audio: false
|
50
|
+
aws:
|
51
|
+
az: us-east-1e
|
52
|
+
keypair: keypair-us-east
|
53
|
+
region: us-east-1
|
54
|
+
# This optional key presumes these IAM roles are already created
|
55
|
+
# and are only applied to workstations currently
|
56
|
+
# iam_roles: ['iam_role', 'iam_roles_buddy']
|
57
|
+
source_ami:
|
58
|
+
ubuntu: ami-8e0b9499
|
59
|
+
windows: ami-bd3ba0aa
|
60
|
+
centos: ami-6d1c2007
|
61
|
+
gce:
|
62
|
+
zone: us-east1-b
|
63
|
+
project: wombat-gce
|
64
|
+
account_file: wombat-gce.json
|
65
|
+
source_image:
|
66
|
+
ubuntu: ubuntu-1404-trusty-v20160809a
|
67
|
+
windows: windows-server-2012-r2-dc-v20160809
|
data/lib/wombat/cli.rb
CHANGED
data/lib/wombat/deploy.rb
CHANGED
data/lib/wombat/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: wombat-cli
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andre Elizondo
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2016-11-
|
12
|
+
date: 2016-11-14 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rake
|
@@ -105,6 +105,7 @@ extensions: []
|
|
105
105
|
extra_rdoc_files: []
|
106
106
|
files:
|
107
107
|
- ".gitignore"
|
108
|
+
- CHANGELOG.md
|
108
109
|
- DESIGN.md
|
109
110
|
- Gemfile
|
110
111
|
- README.md
|
@@ -278,6 +279,7 @@ files:
|
|
278
279
|
- generator_files/packer/workstation.json
|
279
280
|
- generator_files/templates/bootstrap-aws.erb
|
280
281
|
- generator_files/templates/cfn.json.erb
|
282
|
+
- generator_files/wombat.yml
|
281
283
|
- keys/.gitkeep
|
282
284
|
- lib/wombat.rb
|
283
285
|
- lib/wombat/build.rb
|