]> git.donarmstrong.com Git - dsa-puppet.git/blobdiff - 3rdparty/modules/neutron/lib/puppet/type/nova_admin_tenant_id_setter.rb
try again, with puppetforge modules, correctly included now
[dsa-puppet.git] / 3rdparty / modules / neutron / lib / puppet / type / nova_admin_tenant_id_setter.rb
diff --git a/3rdparty/modules/neutron/lib/puppet/type/nova_admin_tenant_id_setter.rb b/3rdparty/modules/neutron/lib/puppet/type/nova_admin_tenant_id_setter.rb
new file mode 100644 (file)
index 0000000..d79e86c
--- /dev/null
@@ -0,0 +1,32 @@
+Puppet::Type.newtype(:nova_admin_tenant_id_setter) do
+
+    ensurable
+
+    newparam(:name, :namevar => true) do
+        desc 'The name of the setting to update'
+    end
+
+    newparam(:tenant_name) do
+        desc 'The nova admin tenant name'
+    end
+
+    newparam(:auth_url) do
+        desc 'The Keystone endpoint URL'
+        defaultto 'http://localhost:35357/v2.0'
+    end
+
+    newparam(:auth_username) do
+        desc 'Username with which to authenticate'
+        defaultto 'admin'
+    end
+
+    newparam(:auth_password) do
+        desc 'Password with which to authenticate'
+    end
+
+    newparam(:auth_tenant_name) do
+        desc 'Tenant name with which to authenticate'
+        defaultto 'admin'
+    end
+end
+