dust-deploy 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -18,17 +18,18 @@ installation is quite simple. just
18
18
  using
19
19
  ------------
20
20
 
21
- first, let's start by creating your dust directory
21
+ let's start by creating a new directory skeleton
22
22
 
23
- $ mkdir mynetwork.dust
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
- then, create directories you might/will need. (there's going to be an automation process in the future, e.g. using "dust new mynetwork.dust")
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 'newnetwork <name>', 'creates a dust directory skeleton for your network'
80
- def newnetwork name
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/"
@@ -1,3 +1,4 @@
1
- domain: flinc.org
1
+ # a template to be inherited by everything, so we set the basics here
2
+ domain: example.com
2
3
  port: 22
3
4
  user: root
@@ -0,0 +1,9 @@
1
+ # this is the hostname of this node
2
+ hostname: myhost
3
+
4
+ # we inherit both templates we created
5
+ inherits: [ _default, _debian ]
6
+
7
+ recipes:
8
+ # this host will make sure the follwing packages are installed
9
+ packages: [ 'vim', 'git-core', 'rsync' ]
data/lib/dust/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Dust
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 1
8
- - 1
9
- version: 0.1.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/example.yaml
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
@@ -1,5 +0,0 @@
1
- hostname: kyle
2
- inherits: [ _default, _debian ]
3
-
4
- recipes:
5
- packages: [ 'vim', 'git-core', 'rsync' ]