landrush 0.7.1 → 0.8.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,14 @@
1
+ module Landrush
2
+ module Cap
3
+ module Redhat
4
+ module InstallIptables
5
+ def self.install_iptables(machine)
6
+ machine.communicate.tap { |c|
7
+ c.sudo('yum clean all')
8
+ c.sudo('yum install -y -q iptables')
9
+ }
10
+ end
11
+ end
12
+ end
13
+ end
14
+ end
@@ -0,0 +1,11 @@
1
+ module Landrush
2
+ module Cap
3
+ module Redhat
4
+ module IptablesInstalled
5
+ def self.iptables_installed(machine)
6
+ machine.communicate.test('rpm -qa | grep iptables')
7
+ end
8
+ end
9
+ end
10
+ end
11
+ end
@@ -62,6 +62,16 @@ module Landrush
62
62
  Cap::Debian::InstallIptables
63
63
  end
64
64
 
65
+ guest_capability('redhat', 'iptables_installed') do
66
+ require_relative 'cap/redhat/iptables_installed'
67
+ Cap::Redhat::IptablesInstalled
68
+ end
69
+
70
+ guest_capability('redhat', 'install_iptables') do
71
+ require_relative 'cap/redhat/install_iptables'
72
+ Cap::Redhat::InstallIptables
73
+ end
74
+
65
75
  guest_capability('linux', 'configured_dns_server') do
66
76
  require_relative 'cap/linux/configured_dns_server'
67
77
  Cap::Linux::ConfiguredDnsServer
@@ -1,3 +1,3 @@
1
1
  module Landrush
2
- VERSION = "0.7.1"
2
+ VERSION = "0.8.0"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: landrush
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.1
4
+ version: 0.8.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-11-22 00:00:00.000000000 Z
12
+ date: 2013-12-17 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rubydns
@@ -102,6 +102,8 @@ files:
102
102
  - lib/landrush/cap/linux/configured_dns_server.rb
103
103
  - lib/landrush/cap/linux/read_host_visible_ip_address.rb
104
104
  - lib/landrush/cap/linux/redirect_dns.rb
105
+ - lib/landrush/cap/redhat/install_iptables.rb
106
+ - lib/landrush/cap/redhat/iptables_installed.rb
105
107
  - lib/landrush/command.rb
106
108
  - lib/landrush/config.rb
107
109
  - lib/landrush/dependent_vms.rb