Sha256: 98396c16f97439d306f287bc1f28b17d497a8367d87076ee1429f8f4dc904324

Contents?: true

Size: 394 Bytes

Versions: 5

Compression:

Stored size: 394 Bytes

Contents

#
# Cookbook Name:: postgresql
# Recipe:: setup_users
#

# setup users

node["postgresql"]["users"].each do |user|
  postgresql_user user["username"] do
    superuser user["superuser"]
    createdb  user["createdb"]
    login     user["login"]
    password  user["password"]
    encrypted_password user["encrypted_password"]
    action Array(user["action"] || "create").map(&:to_sym)
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
from-scratch-0.7.0 cookbooks/postgresql/recipes/setup_users.rb
from-scratch-0.6.0 cookbooks/postgresql/recipes/setup_users.rb
from-scratch-0.5.0 cookbooks/postgresql/recipes/setup_users.rb
from-scratch-0.3.0 cookbooks/postgresql/recipes/setup_users.rb
from-scratch-0.2.0 cookbooks/postgresql/recipes/setup_users.rb