Added dummy resources and providers for ipa_user and ipa_group

This commit is contained in:
Eric Renfro 2016-07-17 10:07:56 -04:00
parent e76a909879
commit f3b0665d6d
5 changed files with 75 additions and 1 deletions

View File

@ -4,7 +4,7 @@ maintainer_email 'psi-jack@linux-help.org'
license 'GPLv3'
description 'Installs/Configures freeipa'
long_description 'Installs/Configures freeipa'
version '0.1.4'
version '0.1.5'
depends 'ohai'
depends 'chef-vault'

14
providers/ipa_group.rb Normal file
View File

@ -0,0 +1,14 @@
def whyrun_supported?
true
end
action :remove do
Chef::Log.warn('Remove ipa_group triggered')
end
action :create do
Chef::Log.warn('Add ipa_group triggered')
end
private

14
providers/ipa_user.rb Normal file
View File

@ -0,0 +1,14 @@
def whyrun_supported?
true
end
action :remove do
Chef::Log.warn('Remove ipa_user triggered')
end
action :create do
Chef::Log.warn('Add ipa_user triggered')
end
private

10
resources/ipa_group.rb Normal file
View File

@ -0,0 +1,10 @@
actions :create, :remove
default_action :create
attribute :name, kind_of: String
attribute :desc, kind_of: String
attribute :gidnumber, kind_of: String
attribute :nonposix, kind_of: [TrueClass, FalseClass], default: false
attribute :external, kind_of: [TrueClass, FalseClass], default: false

36
resources/ipa_user.rb Normal file
View File

@ -0,0 +1,36 @@
actions :create, :remove
default_action :create
attribute :name, kind_of: String
attribute :firstname, kind_of: String
attribute :lastname, kind_of: String
attribute :fullname, kind_of: String
attribute :displayname, kind_of: String
attribute :homedir, kind_of: String
attribute :gecos, kind_of: String
attribute :email, kind_of: String
attribute :shell, kind_of: String
attribute :password, kind_of: String
attribute :uidnumber, kind_of: Integer
attribute :gidnumber, kind_of: Integer
attribute :create_group, kind_of: [TrueClass, FalseClass], default: true
attribute :sshpubkey, kind_of: String
attribute :street, kind_of: String
attribute :city, kind_of: String
attribute :state, kind_of: String
attribute :postal_code, kind_of: String
attribute :phone, kind_of: String
attribute :mobile, kind_of: String
attribute :pager, kind_of: String
attribute :fax, kind_of: String
attribute :carlicense, kind_of: String
attribute :orgunit, kind_of: String
attribute :title, kind_of: String
attribute :manager, kind_of: String
attribute :department_number, kind_of: String
attribute :employee_number, kind_of: String
attribute :employee_type, kind_of: String
attribute :preferred_langugae, kind_of: String