Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

password updates

  • Loading branch information...
commit 03d16bbff600d3f07a4774013ad632425530d2d2 1 parent b49126c
Crowbar User authored
View
2  chef/cookbooks/zenoss/attributes/default.rb
@@ -21,7 +21,7 @@
::Chef::Node.send(:include, Opscode::OpenSSL::Password)
-set_unless[:zenoss][:server][:admin_password] = secure_password
+#set_unless[:zenoss][:server][:admin_password] = secure_password
default[:zenoss][:device][:device_class] = "/Discovered" #overwritten by roles or on nodes
default[:zenoss][:device][:location] = "" #overwritten by roles or on nodes
View
1  chef/cookbooks/zenoss/recipes/server.rb
@@ -111,6 +111,7 @@
end
#use zendmd to set the admin password
+Chef::Log "------------#{node[:zenoss][:server][:admin_password]}----------"
zenoss_zendmd "set admin pass" do
command "app.acl_users.userManager.updateUserPassword('admin', '#{node[:zenoss][:server][:admin_password]}')"
action :run
View
5 chef/data_bags/crowbar/bc-template-zenoss.json
@@ -3,7 +3,10 @@
"description": "Installation for Zenoss",
"attributes": {
"zenoss": {
- "foo": "bar"
+ "foo": "bar",
+ "server": {
+ "admin_password": "zenoss"
+ }
}
},
"deployment": {
View
7 chef/data_bags/crowbar/bc-template-zenoss.schema
@@ -12,7 +12,12 @@
"type": "map",
"required": true,
"mapping": {
- "foo": { "type": "str", "required": true }
+ "foo": { "type": "str", "required": true },
+ "server": { "type": "map",
+ "mapping": {
+ "admin_password": { "type": "str" }
+ }
+ }
}
}
}
View
4 crowbar_framework/app/views/barclamp/zenoss/_edit_attributes.html.haml
@@ -7,4 +7,6 @@
%p
%label{ :for => :backing_type }= t('.foo')
= select_tag :backing_type, options_for_select([['XKCD','xkcd'], ['Dilbert', 'dilbert']], @proposal.raw_data['attributes'][@proposal.barclamp]["foo"]), :onchange => "update_value('foo', 'foo', 'string')"
-
+ %p
+ %label{ :for => :admin_password }= t('.admin-password')
+ %input#admin_password{:type => "text", :name => "admin_password", :'data-default' => @proposal.raw_data['attributes'][@proposal.barclamp]["zenoss"]["admin_password"], :onchange => "update_value('zenoss/admin_password','admin_password', 'string')"}

0 comments on commit 03d16bb

Please sign in to comment.
Something went wrong with that request. Please try again.