-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlifecycleenv.yml
More file actions
56 lines (51 loc) · 1.96 KB
/
lifecycleenv.yml
File metadata and controls
56 lines (51 loc) · 1.96 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
- name: test doing lifecycle from tower
hosts: "{{ server }}"
vars:
activation_key: rhelAK-via-tower
lifecycle_env: testLC-via-tower
content_view: rhelCV-via-tower
subscriptions:
- name: "Red Hat Enterprise Virtualization for Servers, Premium (4000 Sockets)"
organization: opendemoorg
server_url:
username:
password:
tasks:
- name: "Create {{ lifecycle_env }} LCE"
redhat.satellite.lifecycle_environment:
name: "{{ lifecycle_env }}"
prior: "Library"
organization: "{{ organization }}"
state: present
server_url: "{{ server_url }}"
username: "{{ username }}"
password: "{{ password }}"
- name: "Create content view {{ content_view }} "
redhat.satellite.content_view:
name: "{{ content_view }}"
organization: "{{ organization }}"
repositories:
- name: 'Red Hat Satellite Maintenance 6 for RHEL 7 Server RPMs x86_64'
product: 'Red Hat Enterprise Linux Server'
server_url: "{{ server_url }}"
username: "{{ username }}"
password: "{{ password }}"
- name: "Put the cv I just made into the {{ lifecycle_env }} lifecycle"
redhat.satellite.content_view_version:
server_url: "{{ server_url }}"
username: "{{ username }}"
password: "{{ password }}"
content_view: "{{ content_view }}"
organization: "{{ organization }}"
lifecycle_environments: "{{ lifecycle_env }}"
- name: "Create {{ activation_key }}-{{ lifecycle_env }} Activation Key"
redhat.satellite.activation_key:
name: "{{ activation_key }}-{{ lifecycle_env }}"
lifecycle_environment: "{{ lifecycle_env }}"
content_view: "{{ content_view }}"
subscriptions: "{{ subscriptions }}"
organization: "{{ organization }}"
state: present
server_url: "{{ server_url }}"
username: "{{ username }}"
password: "{{ password }}"