diff --git a/Makefile b/Makefile index 123f102..05ea913 100644 --- a/Makefile +++ b/Makefile @@ -6,7 +6,7 @@ INSTALL_PATH = ~/.ansible-navigator.yml SOURCE_FILE = ~/qubinode_navigator/ansible-navigator/release-ansible-navigator.yml INSTALL_ANSIBLE_NAVIGATOR := pip3 install ansible-navigator -BUILD_CMD := tag=$(TAG) && cd ~/qubinode_navigator/ansible-builder/ && ansible-builder build -f qubinode-installer.yml -t qubinode-installer:$${tag} -v 3 +BUILD_CMD := tag=$(TAG) && cd ~/qubinode_navigator/ansible-builder/ && ansible-builder build -f execution-environment.yml -t qubinode-installer:$${tag} -v 3 COPY_NAVIGATOR_CMD := cp $(SOURCE_FILE) $(INSTALL_PATH) PODMAN_LOGIN := podman login registry.redhat.io LIST_INVENTORY_CMD := ansible-navigator inventory --list -m stdout diff --git a/README.md b/README.md index 6606d7f..6b73130 100644 --- a/README.md +++ b/README.md @@ -8,7 +8,6 @@ This repository contains a quickstart script setup.sh to set up and configure Qu * Linux-based operating system (RHEL 9.2, CentOS, Rocky Linux, or Fedora) * Git - ## Quickstart ### Running on RHEL, CentOS, or Fedora @@ -172,4 +171,4 @@ python3 trigger-gitlab-pipeline.py --project_id=1 --token=glpt-mytoken --ref=mai ## Contributing Please submit bug reports, suggestions, and improvements as GitHub issues. -See [Developers Guide](docs/developers.rst) for more information. \ No newline at end of file +See [Developers Guide](docs/developers.md) for more information. \ No newline at end of file diff --git a/ansible-builder/qubinode-installer.yml b/ansible-builder/execution-environment.yml similarity index 100% rename from ansible-builder/qubinode-installer.yml rename to ansible-builder/execution-environment.yml diff --git a/docs/developers.rst b/docs/developers.md similarity index 82% rename from docs/developers.rst rename to docs/developers.md index 330bc8d..3a7df49 100644 --- a/docs/developers.rst +++ b/docs/developers.md @@ -1,36 +1,36 @@ -============= + Developers Guide ============= -Getting Started -=============== +## Getting Started + -Git Clone Repo +**Git Clone Repo** ``` git clone https://github.com/tosin2013/qubinode_navigator.git cd $HOME/qubinode_navigator/ ``` -Configure SSH +**Configure SSH** ``` IP_ADDRESS=$(hostname -I | awk '{print $1}') ssh-keygen -f ~/.ssh/id_rsa -t rsa -N '' ssh-copy-id $USER@${IP_ADDRESS} ``` -Install Ansible Navigator +**Install Ansible Navigator** ```bash make install-ansible-navigator ``` -If you use Red Hat Enterprise Linux with an active Subscription, you might have to lo log into the registry first: +**If you use Red Hat Enterprise Linux with an active Subscription, you might have to lo log into the registry first:** ```bash make podman-login ``` -Create Ansible navigator config file +**Create Ansible navigator config file** ``` # export INVENTORY=supermicro # cat >~/.ansible-navigator.yml< inventories/${INVENTORY}/hosts echo "control ansible_host=${control_host} ansible_user=${control_user}" >> inventories/${INVENTORY}/hosts ``` -Create Requirement file for ansible builder + +**Create Requirement file for ansible builder** ``` cat >ansible-builder/requirements.yml<`_ +`Fedora 38 `_ --------- Make sure the following packages are installed on your system before startng the install:: @@ -24,7 +24,7 @@ Make sure the following packages are installed on your system before startng the sudo dnf install git vim unzip wget bind-utils python3-pip tar util-linux-user gcc python3-devel podman ansible-core make -y -`Rocky 8.7 `_ +`Rocky 8.8 `_ --------- Make sure the following packages are installed on your system before startng the install:: @@ -52,58 +52,3 @@ Make sure the following packages are installed on your system before startng the Make sure the following packages are installed on your system before startng the install:: sudo dnf install git vim unzip wget bind-utils python3-pip tar util-linux-user podman ansible-core make -y - -The qubinode-installer -========================= - -Download and extract the qubinode-installer as a non root user:: - - cd $HOME - wget https://github.com/Qubinode/qubinode-installer/archive/master.zip - unzip master.zip - rm master.zip - mv qubinode-installer-master qubinode-installer - -If you would like to develop the qubinode-installer you can clone the repo:: - - YOUR_ID=githubid - git clone https://github.com/${YOUR_ID}/qubinode-installer.git - cd qubinode-installer - -Qubinode Setup -=============== - -The below commands ensure your system is setup as a KVM host. -The qubinode-installer needs to run as a regular user. - -* setup - ensure your username is setup for sudoers -* rhsm - ensure your rhel system is registered to Red Hat -* ansible - ensure your rhel system is setup for to function as a ansible controller -* host - ensure your rhel system is setup as a KVM host - -Validate sudo user for admin:: - - $ sudo cat /etc/sudoers | grep admin - admin ALL=(ALL) NOPASSWD: ALL - - $ sudo su - root - $ curl -OL https://gist.githubusercontent.com/tosin2013/385054f345ff7129df6167631156fa2a/raw/b67866c8d0ec220c393ea83d2c7056f33c472e65/configure-sudo-user.sh - $ chmod +x configure-sudo-user.sh - $ ./configure-sudo-user.sh admin - $ sudo su - admin - - -Start The Qubinode Installer:: - - cd ~/qubinode-installer - ./qubinode-installer -m setup - ./qubinode-installer -m rhsm - ./qubinode-installer -m ansible - ./qubinode-installer -m host - - -At this point you should be able to acces the RHEL system via the cockpit web interface on -* https://SERVER_IP:9090 - - -See the `Qubinode Overview `_ for more information on the diffent deployment options available. \ No newline at end of file