Skip to content

Commit ed428cd

Browse files
committed
Add missing README
Also fix azure_repo_microsoft_prod argument specs.
1 parent a8000f7 commit ed428cd

File tree

4 files changed

+128
-3
lines changed

4 files changed

+128
-3
lines changed
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
trivial:
2+
- fix azure_repo_microsoft_prod/argument_specs.yml to label the role correctly.
3+
- Add missing README.md for azure_configure_archost and azure_repo_microsoft_prod.
Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
azure_configure_archost
2+
==================
3+
4+
A role to Configure an Azure ARC Machine. Once the agent is installed and run
5+
it will register the host in the **azure_configure_archost_resource_group** requested.
6+
7+
Requirements
8+
------------
9+
10+
* Azure User Account with valid permission
11+
12+
Role Variables
13+
--------------
14+
15+
* **azure_configure_archost_resource_group**: The resource group that the host will be registered in.
16+
* **azure_configure_archost_cloud**: The Azure cloud to use. Default `AzureCloud`
17+
* **azure_configure_archost_location**: The location to use. Default `The location of the resource_group`
18+
* **azure_configure_archost_tenant_id**: Azure tenant id.
19+
* **azure_configure_archost_subscription_id**: Azure subscription id.
20+
* **azure_configure_archost_tags**: Dictionary of tags to apply to the Arc Host entry in Azure. Default: `{archost: "true"}`
21+
* **proxy**: Object used to provide details for proxy setup if needed. Contains the following:
22+
- * **hostname**: The hostname of the proxy server.
23+
- * **port**: The port that the proxy server is listening on.
24+
25+
Limitations
26+
------------
27+
28+
- NA
29+
30+
Dependencies
31+
------------
32+
33+
- NA
34+
35+
Example Playbook
36+
----------------
37+
38+
- name: Deploy arc agent on arc_hosts
39+
hosts: arc_hosts
40+
tasks:
41+
- name: Configure Arc Hosts
42+
ansible.builtin.include_role:
43+
name: cloud.azure_ops.azure_configure_archost
44+
45+
Example Inventory
46+
-----------------
47+
48+
[arc_hosts]
49+
arc-host-01 ansible_user=admin
50+
arc-host-02 ansible_user=admin
51+
arc-host-03 ansible_user=admin
52+
WIN-3B6PDJQPRS4 ansible_user=vagrant ansible_shell_type=powershell
53+
54+
[all:vars]
55+
ansible_ssh_extra_args='-o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no'
56+
azure_configure_archost_resource_group=YOURRESOURCEGROUP
57+
azure_configure_archost_subscription_id=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
58+
azure_configure_archost_tenant_id=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
59+
60+
License
61+
-------
62+
63+
GNU General Public License v3.0 or later
64+
65+
See [LICENCE](https://github.com/redhat-cop/cloud.azure_ops/blob/main/LICENSE) to see the full text.
66+
67+
Author Information
68+
------------------
69+
70+
- Ansible Cloud Content Team
Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
azure_repo_microsoft_prod
2+
==================
3+
4+
A role to Configure a repo for Microsoft production software.
5+
6+
Requirements
7+
------------
8+
9+
* A supported **ansible_os_family**. Currently only RedHat is supported but you can provide the package url yourself. See the role variables below.
10+
11+
Role Variables
12+
--------------
13+
14+
* **azure_repo_microsoft_prod_package_url**: You can set this url to the full path to the Microsoft production repo. By default this will be set automatically for RedHat.
15+
* **proxy**: Object used to provide details for proxy setup if needed. Contains the following:
16+
- * **hostname**: The hostname of the proxy server.
17+
- * **port**: The port that the proxy server is listening on.
18+
19+
Limitations
20+
------------
21+
22+
- NA
23+
24+
Dependencies
25+
------------
26+
27+
- NA
28+
29+
Example Playbook
30+
----------------
31+
32+
- name: Deploy arc agent on arc_hosts
33+
hosts: all
34+
tasks:
35+
- name: Configure Microsoft production repo
36+
ansible.builtin.include_role:
37+
name: cloud.azure_ops.azure_repo_microsoft_prod
38+
vars:
39+
proxy:
40+
hostname: proxy.example.com
41+
port: 8080
42+
43+
License
44+
-------
45+
46+
GNU General Public License v3.0 or later
47+
48+
See [LICENCE](https://github.com/redhat-cop/cloud.azure_ops/blob/main/LICENSE) to see the full text.
49+
50+
Author Information
51+
------------------
52+
53+
- Ansible Cloud Content Team

roles/azure_repo_microsoft_prod/meta/argument_specs.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,9 @@
22
argument_specs:
33
main:
44
version_added: 6.1.0
5-
short_description: A role to Configure an Azure ARC Host.
5+
short_description: A role to Configure Microsoft prod repo.
66
description:
7-
- A role to Configure an Azure ARC host.
8-
- This role requires an resource_group, tenant id and subscription_id.
7+
- A role to Configure Microsoft prod repo.
98
options:
109
azure_repo_microsoft_prod_package_url:
1110
description:

0 commit comments

Comments
 (0)