Skip to content

Commit 910060d

Browse files
Merge pull request #6 from trikorasolns/ocp4
OpenShift 4
2 parents 1b2f4a2 + b783df5 commit 910060d

File tree

221 files changed

+8347
-244
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

221 files changed

+8347
-244
lines changed

README.adoc

Lines changed: 46 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,28 +5,64 @@
55
:description: This document describes the implementation of different applications.
66
:source-highlighter: highlight.js
77

8-
== Generic resources
8+
== Requirements
99

10-
:leveloffset: +1
10+
[.lead]
11+
Requirements to use this project.
1112

12-
include::awx/README.adoc[]
13+
* Install Python 3
14+
* Install Python PIP
15+
* Install _Helm_
1316

14-
:leveloffset: -1
17+
[#python]
18+
=== Python
1519

16-
=== Storate Classes
20+
Install Python 3 and PIP...
1721

18-
==== Local Storate Class
22+
[source,bash]
23+
----
24+
sudo dnf install python python-pip
25+
----
26+
27+
Create a Python Virtual Environment.
28+
29+
[source,bash]
30+
----
31+
python3.11 -m venv /z/venv_python_311
32+
----
33+
34+
Enter the Python Virtual Environment.
35+
36+
[source,bash]
37+
----
38+
source /z/venv_python311/bin/activate
39+
----
1940

20-
Create.
41+
Install the Python requirements.
2142

2243
[source,bash]
2344
----
24-
$ kubectl apply -f misc/k8s/05-storageclass-local.yaml
45+
python -m pip install -r requirements.txt
2546
----
2647

27-
Delete.
48+
Install the Ansible requirements.
2849

2950
[source,bash]
3051
----
31-
$ kubectl delete -f misc/k8s/05-storageclass-local.yaml
52+
ansible-galaxy collection install -r requirements.yml
3253
----
54+
55+
== Infrastructure
56+
57+
* link:./kubernetes[Kubernetes]
58+
* link:./ocp[OpenShift Container Platform]
59+
* link:./proxmox[Proxmox]
60+
61+
== Applications
62+
63+
* link:./keycloak[Keycloak]
64+
65+
== Other considerations
66+
67+
Check the link:./_local_config/README.adoc[`_local_config`] information.
68+

_local_config/README.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
= Local Config folder
22
:author: Antonio C.
3-
:email: <sp38af (at) trikorasolutions (dot) com>
3+
:email: <ac (at) trikorasolutions (dot) com>
44
:revdate: {docdate}
55
:toc: left
66
:toc-title: Table of Contents
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
#!/usr/bin/python
2+
3+
class FilterModule(object):
4+
''' Nested dict filter '''
5+
6+
def filters(self):
7+
return {
8+
'nesteddict2items': self.nesteddict2items
9+
}
10+
11+
def nesteddict2items(self, vlans_live):
12+
vlans = []
13+
14+
for v_key, v_value in vlans_live.items():
15+
vlans.append(v_value)
16+
17+
return vlans
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
Role Name
2+
=========
3+
4+
A brief description of the role goes here.
5+
6+
Requirements
7+
------------
8+
9+
Any pre-requisites that may not be covered by Ansible itself or the role should be mentioned here. For instance, if the role uses the EC2 module, it may be a good idea to mention in this section that the boto package is required.
10+
11+
Role Variables
12+
--------------
13+
14+
A description of the settable variables for this role should go here, including any variables that are in defaults/main.yml, vars/main.yml, and any variables that can/should be set via parameters to the role. Any variables that are read from other roles and/or the global scope (ie. hostvars, group vars, etc.) should be mentioned here as well.
15+
16+
Dependencies
17+
------------
18+
19+
A list of other roles hosted on Galaxy should go here, plus any details in regards to parameters that may need to be set for other roles, or variables that are used from other roles.
20+
21+
Example Playbook
22+
----------------
23+
24+
Including an example of how to use your role (for instance, with variables passed in as parameters) is always nice for users too:
25+
26+
- hosts: servers
27+
roles:
28+
- { role: username.rolename, x: 42 }
29+
30+
License
31+
-------
32+
33+
BSD
34+
35+
Author Information
36+
------------------
37+
38+
An optional section for the role authors to include contact information, or a website (HTML is not allowed).
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#SPDX-License-Identifier: MIT-0
2+
---
3+
# defaults file for vm_configure
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#SPDX-License-Identifier: MIT-0
2+
---
3+
# handlers file for vm_configure
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
#SPDX-License-Identifier: MIT-0
2+
galaxy_info:
3+
author: your name
4+
description: your role description
5+
company: your company (optional)
6+
7+
# If the issue tracker for your role is not on github, uncomment the
8+
# next line and provide a value
9+
# issue_tracker_url: http://example.com/issue/tracker
10+
11+
# Choose a valid license ID from https://spdx.org - some suggested licenses:
12+
# - BSD-3-Clause (default)
13+
# - MIT
14+
# - GPL-2.0-or-later
15+
# - GPL-3.0-only
16+
# - Apache-2.0
17+
# - CC-BY-4.0
18+
license: license (GPL-2.0-or-later, MIT, etc)
19+
20+
min_ansible_version: 2.1
21+
22+
# If this a Container Enabled role, provide the minimum Ansible Container version.
23+
# min_ansible_container_version:
24+
25+
galaxy_tags: []
26+
# List tags for your role here, one per line. A tag is a keyword that describes
27+
# and categorizes the role. Users find roles by searching for tags. Be sure to
28+
# remove the '[]' above, if you add tags to this list.
29+
#
30+
# NOTE: A tag is limited to a single word comprised of alphanumeric characters.
31+
# Maximum 20 tags per role.
32+
33+
dependencies: []
34+
# List your role dependencies here, one per line. Be sure to remove the '[]' above,
35+
# if you add dependencies to this list.
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#SPDX-License-Identifier: MIT-0
2+
---
3+
# tasks file for vm_configure
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#SPDX-License-Identifier: MIT-0
2+
localhost
3+
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#SPDX-License-Identifier: MIT-0
2+
---
3+
- hosts: localhost
4+
remote_user: root
5+
roles:
6+
- vm_configure

0 commit comments

Comments
 (0)