diff options
Diffstat (limited to 'lib/puppet/type/zone.rb')
-rw-r--r-- | lib/puppet/type/zone.rb | 26 |
1 files changed, 12 insertions, 14 deletions
diff --git a/lib/puppet/type/zone.rb b/lib/puppet/type/zone.rb index 70dd3e093..97b8d126f 100644 --- a/lib/puppet/type/zone.rb +++ b/lib/puppet/type/zone.rb @@ -172,8 +172,7 @@ Puppet::Type.newtype(:zone) do end provider.send(method) else - raise Puppet::DevError, "Cannot move %s from %s" % - [direction, st[:name]] + raise Puppet::DevError, "Cannot move %s from %s" % [direction, st[:name]] end end @@ -200,9 +199,9 @@ Puppet::Type.newtype(:zone) do newparam(:clone) do desc "Instead of installing the zone, clone it from another zone. - If the zone root resides on a zfs file system, a snapshot will be - used to create the clone, is it redisides on ufs, a copy of the zone - will be used. The zone you clone from must not be running." + If the zone root resides on a zfs file system, a snapshot will be + used to create the clone, is it redisides on ufs, a copy of the zone + will be used. The zone you clone from must not be running." end newproperty(:ip, :parent => ZoneMultiConfigProperty) do @@ -327,13 +326,12 @@ Puppet::Type.newtype(:zone) do security_policy=NONE root_password=<%= password %> timeserver=localhost - name_service=DNS {domain_name=<%= domain %> - name_server=<%= nameserver %>} + name_service=DNS {domain_name=<%= domain %> name_server=<%= nameserver %>} network_interface=primary {hostname=<%= realhostname %> - ip_address=<%= ip %> - netmask=<%= netmask %> - protocol_ipv6=no - default_route=<%= defaultroute %>} + ip_address=<%= ip %> + netmask=<%= netmask %> + protocol_ipv6=no + default_route=<%= defaultroute %>} nfs4_domain=dynamic And then call that:: @@ -405,9 +403,9 @@ Puppet::Type.newtype(:zone) do interface, address, defrouter = value.split(':') if self[:iptype] == :shared if (interface && address && defrouter.nil?) || - (interface && address && defrouter) - validate_ip(address, "IP address") - validate_ip(defrouter, "default router") + (interface && address && defrouter) + validate_ip(address, "IP address") + validate_ip(defrouter, "default router") else self.fail "ip must contain interface name and ip address separated by a \":\"" end |