Browse Source

* Update the README.md file for (#7) user defined type.

* Add a test for (#7) user defined type.
master
gardouille 6 years ago
parent
commit
23a442b0ee
  1. 4
      CHANGELOG.md
  2. 8
      README.md
  3. 1
      tests/add_user.pp
  4. 2
      tests/group_management.pp

4
CHANGELOG.md

@ -5,8 +5,8 @@
* (#4) Add a new class to manage Proxmox's service (proxmox::hypervisor::service).
* (#6) Add a new defined type to manage groups for PVE WebGUI.
* (#7) Add a new defined type to manage users for PVE WebGUI.
* Update the README.md file for (#6) group defined type.
* Add a test for (#6) group defined type.
* Update the README.md file for (#6) group and (#7) user defined types.
* Add a test for (#6) group and (#7) user defined types.
---------------------------------------

8
README.md

@ -56,7 +56,13 @@ class { 'proxmox::hypervisor':
* `proxmox::hypervisor::group`: Manage groups for Proxmox WebGUI and set permissions.
`proxmox::hypervisor::group { 'sysadmin': role => "Administrator", users => [ 'user1@pam' ], }`
`proxmox::hypervisor::group { 'sysadmin': role => "Administrator", users => [ 'user1@pam', 'toto@pve' ], }`
* `proxmox::hypervisor::user`: Manage user for Proxmox WebGUI.
`proxmox::hypervisor::user { 'marvin': group => 'sysadmin', }
Mainly used by the `proxmox::hypervisor::group` defined type to create the group, permissions and also create/add the users to a group. Because to add a user to a group via this defined type, the group should already exist.
### Parameters

1
tests/add_user.pp

@ -0,0 +1 @@
proxmox::hypervisor::user { 'zaphod@pam': group => 'sysadmin', }

2
tests/group_management.pp

@ -1,2 +1,2 @@
proxmox::hypervisor::group { 'sysadmin': role => "Administrator", users => [ 'user1@pam' ], }
proxmox::hypervisor::group { 'sysadmin': role => "Administrator", users => [ 'user1@pam', 'toto@pve' ], }
proxmox::hypervisor::group { 'audit': role => "PVEAuditor", users => [ 'user2@pam' ], }
Loading…
Cancel
Save