Skip to content

Commit

Permalink
Use shellscript to add operating systems (theforeman#2614)
Browse files Browse the repository at this point in the history
orcharhino Server contains a shellscript that runs an Ansible playbook
that contains Ansible roles to add and/or update existing operating
system entries and associated templates on orcharhino Server.
  • Loading branch information
maximiliankolb committed Dec 7, 2023
1 parent 0002e78 commit 43f6e90
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,7 @@
Create an installation medium in {Project} to provision hosts running {Debian}.

ifdef::orcharhino[]
[TIP]
====
You can use an Ansible role to configure operating systems to skip this step.
The Ansible role is located on your orcharhino Server at `/usr/share/orcharhino-ansible/roles/or_operating_systems/`.
====
include::snip_creating-os-on-orcharhino.adoc[]
endif::[]

.Procedure
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,7 @@ Create an operating system in {Project} to provision hosts running {os_name}.
This example creates an operating system entry for {os_name} {os_major}.{os_minor}.

ifdef::orcharhino[]
[TIP]
====
You can use an Ansible role to configure operating systems to skip this step.
The Ansible role is located on your orcharhino Server at `/usr/share/orcharhino-ansible/roles/or_operating_systems/`.
====
include::snip_creating-os-on-orcharhino.adoc[]
endif::[]

.Procedure
Expand Down
5 changes: 4 additions & 1 deletion guides/common/modules/proc_creating-operating-systems.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,11 @@ You can add operating systems using the following procedure.
endif::[]
To use the CLI instead of the {ProjectWebUI}, see the xref:cli-creating-operating-systems_{context}[].

.Procedure
ifdef::orcharhino[]
include::snip_creating-os-on-orcharhino.adoc[]
endif::[]

.Procedure
. In the {ProjectWebUI}, navigate to *Hosts* > *Operating systems* and click *New Operating* system.
. In the *Name* field, enter a name to represent the operating system entry.
. In the *Major* field, enter the number that corresponds to the major version of the operating system.
Expand Down
7 changes: 7 additions & 0 deletions guides/common/modules/snip_creating-os-on-orcharhino.adoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
[TIP]
====
You can use a script to add operating system entries to your {ProjectServer}.
On your {ProjectServer}, uncomment the operating systems and {project-client-name} that you want to add in `/etc/orcharhino-ansible/or_operating_systems_vars.yaml`, replace the default organization and location names, and run `/opt/orcharhino/automation/play_operating_systems.sh`.
For more information, see `/usr/share/orcharhino-ansible/README.md` on your {ProjectServer}.
====

0 comments on commit 43f6e90

Please sign in to comment.