mofa 0.2.1 → 0.2.2

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -1,3 +1,54 @@
1
1
  # mofa
2
2
  a lightweight remote chef-solo runner
3
3
 
4
+ Before you can start using mofa please create a config file:
5
+
6
+ mkdir ~/.mofa
7
+
8
+ cat <<EOF > ~/.mofa/config.yaml
9
+ # global mofa settings
10
+
11
+ # Admin User Account that should be used for all mofa tasks.
12
+ # The user has to be able to login passwordless
13
+ # and has tohave passwordless sudo permissions.
14
+ ssh_user: vagrant
15
+ ssh_port: 2222
16
+ ssh_keyfile: ~/.ssh/id_rsa_vagrant_insecure
17
+
18
+ # A REST-Webservice that returns a list of hosts that are potentially
19
+ # manageable with this mofa.
20
+ #service_hostlist_url: http://a-real-server:9292/hosts
21
+ service_hostlist_url: file:///Users/<yourname>/workspaces/mofa/example_hostlist.json
22
+ service_hostlist_default_filter: "localhost"
23
+ service_hostlist_api_key: <a api key used to access the above service>
24
+
25
+ # where to build tmporary cookbook packages and so on
26
+ tmp_dir: /var/tmp
27
+
28
+ # The cookbook architectural pattern should becodified by following
29
+ # a cookbook naming schema:
30
+ # * Cookbooks beginning with "env_*" are Envrionment Cookbooks
31
+ # * Cookbooks haven a prefix like "<organisation_name>_*" are
32
+ # so-called Wrapper Cookbooks
33
+ # * Cookbooks having a "base_" Prefix are Base Cookbooks
34
+
35
+ cookbook_type_indicator:
36
+ env: "^env_.*"
37
+ wrapper: "^(<your_org>_|<another_pattern>_).*"
38
+ base: ".*_base$"
39
+
40
+ # Binrepo for released cookbooks
41
+ binrepo_base_url: http://binrepo-server/cookbooks/
42
+
43
+ # Releasing into binrepo
44
+ binrepo_host: localhost
45
+ binrepo_ssh_user: berkshelf
46
+ binrepo_ssh_port: 2222
47
+ binrepo_ssh_keyfile: ~/.ssh/id_rsa_vagrant_insecure
48
+ binrepo_import_dir: /var/berks-api-binrepo/cookbooks
49
+
50
+ EOF
51
+
52
+
53
+
54
+
@@ -10,10 +10,12 @@ module Mofa
10
10
 
11
11
  def self.load
12
12
  unless Dir.exist?("#{ENV['HOME']}/.mofa")
13
- warn "Mofa config folder not present. You may use 'mofa setup' to get rid of this message."
13
+ #warn "Mofa config folder not present! You may use 'mofa setup' to get rid of this message."
14
+ warn "Mofa config folder not present! Please create a folder .mofa in your HOME directory: mkdir ~/.mofa"
14
15
  end
15
16
  unless File.exist?("#{ENV['HOME']}/.mofa/config.yml")
16
- warn "Mofa config file not present at #{ENV['HOME']}/.mofa/config.yml! You may use 'mofa setup' to get rid of this message."
17
+ #warn "Mofa config file not present at #{ENV['HOME']}/.mofa/config.yml! You may use 'mofa setup' to get rid of this message."
18
+ warn "Mofa config file not present at #{ENV['HOME']}/.mofa/config.yml! Please create a config file first! (see README.md)"
17
19
  end
18
20
  if File.exist?("#{ENV['HOME']}/.mofa/config.yml")
19
21
  @@config = YAML.load(File.open("#{ENV['HOME']}/.mofa/config.yml"))
@@ -1,3 +1,3 @@
1
1
  module Mofa
2
- VERSION = "0.2.1"
2
+ VERSION = "0.2.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mofa
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: