asc.core.common role

Note

This role is part of the asc.core collection (version 1.0.4).

It is not included in ansible-core. To check whether it is installed, run ansible-galaxy collection list.

To install it use: git clone git@ssh.dev.azure.com:v3/cloudasc/iac-ansible-collections/core $HOME/.ansible/collections/ansible_collections/asc/core.

To use it in a playbook, specify: asc.core.common.

Entry point add-guac-connection – Add a Guacamole connection for a user

New in asc.core 1.0.0

Synopsis

  • Add a Guacamole connection for a user

Parameters

Parameter

Comments

target_connection_groups

list / elements=string

List of connection groups to add (Terraform resource identifier)

target_connections

list / elements=string

List of connections to add (Terraform resource identifier)

target_email

string

Email address of the target user to add the connection for

target_user

string

Username of the target user to add the connection for

Authors

  • Lorenzo Bernardi

Entry point configure-ssh – Configure SSH connection for Guacamole access

New in asc.core 1.0.0

Synopsis

  • Configure SSH connection for Guacamole access

Parameters

Parameter

Comments

admin_password

string

Password of the admin user on the target system

admin_username

string

Username of the admin user on the target system

guac_ssh_pubkey

string

Public key to use for the Guacamole SSH connection

Authors

  • Lorenzo Bernardi

Entry point create-ssl-selfsignedcert – Create a self-signed SSL certificate

New in asc.core 1.0.0

Synopsis

  • Create a self-signed SSL certificate

Parameters

Parameter

Comments

pkcs_keystore

boolean

Create a PKCS keystore

Choices:

  • false

  • true

sslcert_cert_file_path

string / required

Path to the SSL certificate file

sslcert_key_file_path

string / required

Path to the SSL key file

sslcert_subject_common_name

string / required

Common name of the SSL certificate subject

sslcert_subject_country_name

string / required

Country name of the SSL certificate subject

sslcert_subject_email_address

string / required

Email address of the SSL certificate subject

sslcert_subject_organization_name

string / required

Organization name of the SSL certificate subject

Authors

  • Lorenzo Bernardi

Entry point enable-aadssh – Enable AAD SSH authentication

New in asc.core 1.0.0

Synopsis

  • Enable AAD SSH authentication

Authors

  • Lorenzo Bernardi

Entry point generate-ssh-keypair – Generate a SSH keypair

New in asc.core 1.0.0

Synopsis

  • Generate a SSH keypair

Authors

  • Lorenzo Bernardi

Entry point import-students – Import students from ‘users’ variable

New in asc.core 1.0.0

Synopsis

  • Import students from ‘users’ variable

  • Filters the list of users and selects only the ones with the ‘student’ tag

  • For each user, generate an ID (2 digits, incremental) and store it in the ‘id’ variable

  • For each user, store the name of the assigned VM in the ‘vm’ variable

Parameters

Parameter

Comments

users

dictionary / required

List of users

Authors

  • Lorenzo Bernardi