dust-deploy 0.1.1 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/README.md
CHANGED
@@ -18,17 +18,18 @@ installation is quite simple. just
|
|
18
18
|
using
|
19
19
|
------------
|
20
20
|
|
21
|
-
|
21
|
+
let's start by creating a new directory skeleton
|
22
22
|
|
23
|
-
$
|
23
|
+
$ dust new mynetwork
|
24
|
+
- spawning new dust directory skeleton into 'mynetwork.dust' [ ok ]
|
25
|
+
- copying example yaml node configuration files - copying _debian.yaml [ ok ]
|
26
|
+
- copying _default.yaml [ ok ]
|
27
|
+
- copying myhost.yaml [ ok ]
|
24
28
|
|
25
|
-
|
29
|
+
this will create a directory called mynetwork.dust, the nodes, templates and recipes subdirectories and will create some example configuration files in the nodes directory. hop into your new dust directory and see what's going on:
|
26
30
|
|
27
31
|
$ cd mynetwork.dust
|
28
|
-
$ mkdir templates
|
29
|
-
$ mkdir nodes
|
30
32
|
|
31
|
-
in the nodes directory, there will be your node-templates and node configuration files.
|
32
33
|
dust uses simple .yaml files for configuring your nodes.
|
33
34
|
let's start by adding a simple host:
|
34
35
|
|
data/bin/dust
CHANGED
@@ -76,8 +76,8 @@ module Dust
|
|
76
76
|
|
77
77
|
|
78
78
|
# creates directory skeleton for a dust setup
|
79
|
-
desc '
|
80
|
-
def
|
79
|
+
desc 'new <name>', 'creates a dust directory skeleton for your network'
|
80
|
+
def new name
|
81
81
|
Dust.print_msg "spawning new dust directory skeleton into '#{name}.dust'"
|
82
82
|
Dir.mkdir "#{name}.dust"
|
83
83
|
Dir.mkdir "#{name}.dust/nodes"
|
@@ -1,8 +1,14 @@
|
|
1
|
+
# adding a group enables you to filter hosts after groups later
|
1
2
|
group: debian
|
2
3
|
|
3
4
|
recipes:
|
5
|
+
# set the debian locale
|
4
6
|
locale: en_US.UTF-8
|
7
|
+
|
8
|
+
# configure debsecan
|
5
9
|
debsecan: default
|
10
|
+
|
11
|
+
# configure apt repositories
|
6
12
|
repositories:
|
7
13
|
default:
|
8
14
|
url: "http://ftp.de.debian.org/debian/"
|
data/lib/dust/version.rb
CHANGED
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 0
|
7
7
|
- 1
|
8
|
-
-
|
9
|
-
version: 0.1.
|
8
|
+
- 2
|
9
|
+
version: 0.1.2
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- kris kechagia
|
@@ -85,7 +85,7 @@ files:
|
|
85
85
|
- lib/dust/convert_size.rb
|
86
86
|
- lib/dust/examples/nodes/_debian.yaml
|
87
87
|
- lib/dust/examples/nodes/_default.yaml
|
88
|
-
- lib/dust/examples/nodes/
|
88
|
+
- lib/dust/examples/nodes/myhost.yaml
|
89
89
|
- lib/dust/print_status.rb
|
90
90
|
- lib/dust/recipes/aliases.rb
|
91
91
|
- lib/dust/recipes/basic_setup.rb
|