UNCLASSIFIED
Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
LevelUP IaC
systems
3rd_party_repos_satellite
Commits
172f84be
Commit
172f84be
authored
Nov 04, 2019
by
Michael Holmes
Browse files
initial
parent
f40faba4
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
39 additions
and
0 deletions
+39
-0
defaults/main.yml
defaults/main.yml
+4
-0
files/rpm_gpg_key_epel_7
files/rpm_gpg_key_epel_7
+3
-0
files/rpm_gpg_key_gitlab
files/rpm_gpg_key_gitlab
+3
-0
tasks/main.yml
tasks/main.yml
+8
-0
tasks/repo_create.yml
tasks/repo_create.yml
+21
-0
No files found.
defaults/main.yml
View file @
172f84be
---
---
<<<<<<< HEAD
# defaults file for 3rd_party_repos_satellite
# defaults file for 3rd_party_repos_satellite
foreman_initial_organization
:
"
{{
lookup('env','FOREMAN_INITIAL_ORGANIZATION')
}}"
foreman_initial_organization
:
"
{{
lookup('env','FOREMAN_INITIAL_ORGANIZATION')
}}"
foreman_initial_location
:
"
{{
lookup('env','FOREMAN_INITIAL_LOCATION')
}}"
foreman_initial_location
:
"
{{
lookup('env','FOREMAN_INITIAL_LOCATION')
}}"
=======
# defaults file for 3rd_party_repos_satellite
>
>>>>>>
6f1f6d3814dd526258e3540cd121f1c7c6814e24
files/rpm_gpg_key_epel_7
View file @
172f84be
...
@@ -27,4 +27,7 @@ vCPFU6OsT3lWQ8w7il5ohY95wmujfr6lk89kEzJdOTzcn7DBbUru33CQMGKZ3Evt
...
@@ -27,4 +27,7 @@ vCPFU6OsT3lWQ8w7il5ohY95wmujfr6lk89kEzJdOTzcn7DBbUru33CQMGKZ3Evt
RjsC7FDbL017qxS+ZVA/HGkyfiu4cpgV8VUnbql5eAZ+1Ll6Dw==
RjsC7FDbL017qxS+ZVA/HGkyfiu4cpgV8VUnbql5eAZ+1Ll6Dw==
=hdPa
=hdPa
-----END PGP PUBLIC KEY BLOCK-----
-----END PGP PUBLIC KEY BLOCK-----
<<<<<<< HEAD
=======
>>>>>>> 6f1f6d3814dd526258e3540cd121f1c7c6814e24
files/rpm_gpg_key_gitlab
View file @
172f84be
...
@@ -51,4 +51,7 @@ hL1rkkv+NMWy8kE7AuUXRv8RPDfrf9dUD0KbwHne7w/ciB9qYEQjGqq8RH/9KgTI
...
@@ -51,4 +51,7 @@ hL1rkkv+NMWy8kE7AuUXRv8RPDfrf9dUD0KbwHne7w/ciB9qYEQjGqq8RH/9KgTI
G5k6Ege9HT3N
G5k6Ege9HT3N
=2KjF
=2KjF
-----END PGP PUBLIC KEY BLOCK-----
-----END PGP PUBLIC KEY BLOCK-----
<<<<<<< HEAD
=======
>>>>>>> 6f1f6d3814dd526258e3540cd121f1c7c6814e24
tasks/main.yml
View file @
172f84be
---
---
<<<<<<< HEAD
-
name
:
move gpg keys to server, create custom repos and sync them
-
name
:
move gpg keys to server, create custom repos and sync them
include_tasks
:
repo_create.yml
include_tasks
:
repo_create.yml
-
name
:
add custom repos to activation keys
-
name
:
add custom repos to activation keys
include_tasks
:
custom_content.yml
include_tasks
:
custom_content.yml
=======
-
name
:
Build Custom Repos
import_tasks
:
repo_create.yml
-
name
:
Add content to activation keys
import_tasks
:
custom_content.yml
>
>>>>>>
6f1f6d3814dd526258e3540cd121f1c7c6814e24
tasks/repo_create.yml
View file @
172f84be
---
---
<<<<<<< HEAD
-
name
:
Move epel key
-
name
:
Move epel key
copy
:
copy
:
src
:
files/rpm_gpg_key_gitlab
src
:
files/rpm_gpg_key_gitlab
...
@@ -14,10 +15,13 @@
...
@@ -14,10 +15,13 @@
owner
:
root
owner
:
root
group
:
root
group
:
root
=======
>
>>>>>>
6f1f6d3814dd526258e3540cd121f1c7c6814e24
-
name: Check to see if localhost is running satellite
-
name: Check to see if localhost is running satellite
shell: command -v hammer >/dev/null 2>&1
shell: command -v hammer >/dev/null 2>&1
register: is_hammer_exist
register: is_hammer_exist
<
<<<<<< HEAD
-
name: epel key create
-
name: epel key create
command: hammer gpg create --key "{{ rpm_gpg_key_epel_7 }}" --organization "{{ foreman_initial_organization }}" --name "epel_7_key"
command: hammer gpg create --key "{{ rpm_gpg_key_epel_7 }}" --organization "{{ foreman_initial_organization }}" --name "epel_7_key"
register: cmd
register: cmd
...
@@ -38,6 +42,8 @@
...
@@ -38,6 +42,8 @@
register: cmd
register: cmd
failed_when: cmd.rc not in [65,0]
failed_when: cmd.rc not in [65,0]
=
======
>
>>>>>> 6f1f6d3814dd526258e3540cd121f1c7c6814e24
-
name: gitlab key create
-
name: gitlab key create
command: hammer gpg create --key "{{ rpm_gpg_key_gitlab }}" --organization "{{ org.name }}" --name "gitlab_key"
command: hammer gpg create --key "{{ rpm_gpg_key_gitlab }}" --organization "{{ org.name }}" --name "gitlab_key"
register: cmd
register: cmd
...
@@ -53,7 +59,22 @@
...
@@ -53,7 +59,22 @@
register: cmd
register: cmd
failed_when: cmd.rc not in [65,0]
failed_when: cmd.rc not in [65,0]
<
<<<<<< HEAD
-
name: sync epel repo
-
name: sync epel repo
command: hammer repository synchronize --organization "{{ foreman_initial_organization }}" --product gitlab_product
command: hammer repository synchronize --organization "{{ foreman_initial_organization }}" --product gitlab_product
=
======
-
name: epel key create
command: hammer gpg create --key "{{ rpm_gpg_key_epel_7 }}" --organization "{{ foreman_initial_organization }}" --name "epel_7_key"
register: cmd
failed_when: cmd.rc not in [65,0]
-
name: product create EPEL
command: hammer product create --gpg-key "epel_7_key" --name "epel_7_product" --description "EPEL 7 Repository" --organization "{{ foreman_initial_organization }}"
register: cmd
failed_when: cmd.rc not in [65,0]
-
name: repo create epel
command: hammer repository create --organization "{{ foreman_initial_organization }}" --content-type yum --download-policy "immediate" --gpg-key "epel_7_key" --name "epel_7_repo" --product "epel_7_product" --url "https://dl.fedoraproject.org/pub/epel/7/x86_64/"
>
>>>>>> 6f1f6d3814dd526258e3540cd121f1c7c6814e24
register: cmd
register: cmd
failed_when: cmd.rc not in [65,0]
failed_when: cmd.rc not in [65,0]
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment