source "https://supermarket.chef.io"
metadata
name 'masterwrap'
maintainer 'The Authors'
maintainer_email ' "> '
license 'all_rights'
description 'Installs/Configures masterwrap'
long_description 'Installs/Configures masterwrap'
version '0.1.0'
depends 'git', '~> 4.1.0'
depends 'sudo', '~> 2.7.1'
depends 'users', '~> 1.8.0'
#
# Cookbook Name:: masterwrap
# Recipe:: default
#
# Copyright (c) 2015 The Authors, All Rights Reserved.
include_recipe 'git'
include_recipe 'masterwrap::users'
#
# Cookbook Name:: masterwrap
# Recipe:: users
#
# Copyright (c) 2015 The Authors, All Rights Reserved.
include_recipe 'sudo'
include_recipe 'users'
%w(deploy sysadmin).each do |group|
users_manage group do
data_bag 'users'
action [ :remove, :create ]
end
end
sudo 'sysadmin' do
group '%sysadmin'
nopasswd false
end
---
driver:
name: vagrant
provisioner:
name: chef_zero
platforms:
- name: ubuntu1404
driver:
box: ubuntu/trusty64
box_url: ubuntu/trusty64
attributes:
authorization:
sudo:
users: ['vagrant']
passwordless: true
include_sudoers_d: true
suites:
- name: default
data_bags_path: 'test/fixtures/data_bags'
run_list:
- recipe[masterwrap::default]
attributes:
# This file is managed by Chef.
# Do NOT modify this file directly.
Defaults !lecture,tty_tickets,!fqdn
# User privilege specification
root ALL=(ALL) ALL
vagrant ALL=(ALL) NOPASSWD:ALL
# Members of the group 'sysadmin' may gain root privileges
%sysadmin ALL=(ALL) NOPASSWD:ALL
Archive powered by MHonArc 2.6.16.