Created
February 13, 2012 23:37
-
-
Save hh/1821492 to your computer and use it in GitHub Desktop.
reset admin webui password for chef
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'rubygems' | |
require 'chef/config' | |
require 'chef/webui_user' | |
Chef::Config.from_file(File.expand_path("~/.chef/knife.rb")) | |
user = Chef::WebUIUser.load('admin') | |
user.set_password("MyAwesomePassword") | |
user.save |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
shef, then just copy and paste it in
:
eg: