This project has a set of salt modules and states to easily manage suse manager server organizations and suse_manager_server
Module can only be applied in minions with the role 'suse_manager_server'.
Verify if organization is set up on the server with the correct admin user.
example:
salt '*' uyuni_org.check_present SUSE admin admin
create_or_update (org_name, first_username, first_password, user_email, prefix='Sr.', firstName = None,lastName = None)
Creates a new organization with a user as administer of the organization
example 1:
salt '*' uyuni_org.check_present Org org_admin org_admin [email protected]
example 2:
salt '*' uyuni_org.check_present Org org_admin org_admin [email protected] "Mr." foo bar
Module can only be applied in minions with the role 'suse_manager_server'.
check_exists (name, password, org, first_name = None, last_name = None, email = ' ',org_admin=False)
Verify is user existis in the server with the correct organization and detail information
example:
salt '*' uyuni_user.check_present user password SUSE firstName lastName [email protected] False
create_or_update (name, password, org, org_admin_username, org_admin_password, first_name = None, last_name = None, email=' ', org_admin=False)
Creates a new user in the server for the given organization.
example:
salt '*' uyuni_user.present user password SUSE admin admin firstName lastName [email protected] True
Delegates all execution on the uyuni_org module.
Available fields for the salt stated:
- name
- first_username
- first_password
- user_email
- prefix = Must match one of the values available in the web UI. (i.e. Dr., Mr., Mrs., Sr., etc.). Default value is 'Sr.'
- firstName: default value is the value passed in first_username field
- lastName: default value is the value passed in first_username field
Example:
test:
uyuni_org.present:
- name: new_org
- first_username: new_user
- first_password: new_password
- user_email: [email protected]
- prefix: "Sr."
- firstName: "New"
- lastName: "User"
Delegates all execution on the uyuni_user module.
Available fields for the salt stated:
- name
- password
- org
- org_admin_username: user that belongs to the organization and have 'org_admin' role
- org_admin_password: password for the user specified on 'org_admin_username'
- firstName: default value is the value passed in the 'name' field
- lastName: default value is the value passed in the 'name' field
- org_admin: specifies if the user should be an organization administrator
Example:
simple_user:
uyuni_user.present:
- name: org_user_example
- password: org_user_example
- org: new_org
- org_admin_username: new_user
- org_admin_password: new_password
- first_name: first_name
- last_name: last_name
- email: [email protected]
- org_admin: False