Update cookbooks and add wordpress cookbook
This commit is contained in:
@@ -18,13 +18,14 @@
|
||||
# limitations under the License.
|
||||
#
|
||||
|
||||
require 'openssl'
|
||||
include OpenSSLCookbook::Helpers
|
||||
|
||||
module Opscode
|
||||
module OpenSSL
|
||||
# Generate secure passwords with OpenSSL
|
||||
module Password
|
||||
def secure_password(length = 20)
|
||||
pw = String.new
|
||||
pw = ''
|
||||
|
||||
while pw.length < length
|
||||
pw << ::OpenSSL::Random.random_bytes(1).gsub(/\W/, '')
|
||||
|
||||
Reference in New Issue
Block a user