Skip to content

Commit

Permalink
adding AAP instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
tosin2013 committed Feb 21, 2024
1 parent ac345fc commit 54f66b0
Show file tree
Hide file tree
Showing 4 changed files with 66 additions and 27 deletions.
25 changes: 1 addition & 24 deletions _deployments/aap_microshift_deployment.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -10,27 +10,4 @@ image: /path/to/hero-image.jpg # Path to a hero image (optional)

## Prerequisites
* AAP has been deployed on OpenShift

![20240221111710](https://i.imgur.com/Qr1GB97.png)
![20240221111734](https://i.imgur.com/2B5Wckz.png)
![20240221111755](https://i.imgur.com/cgMvq8u.jpeg)
![20240221112012](https://i.imgur.com/OUymygl.png)

![20240221112251](https://i.imgur.com/PaUXYLY.png)

### Optional Install OpenShift Devspaces
* Configure DevSpaces for Ansible Automation Platform Configuration. [Read More](../../deployments/devspaces_configuration)


## Configure AAP
If you did not install the OpenShift Devspaces Operator, you can configure the AAP manually from your laptop using the [ee_definition_config](https://github.com/tosin2013/ee_definition_config) repo.

### Requirements install collections
{% highlight bash %}
ansible-galaxy collection install -r collections/requirements.yml
{% endhighlight %}

### Edit the secret-vars-microshift-ansible-aws-roles.yml
{% highlight bash %}
vim secret-vars-microshift-ansible-aws-roles.yml
{% endhighlight %}
* AAP has been configured for Microshift deployments on AWS
61 changes: 61 additions & 0 deletions _deployments/configure_aap.markdown
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
---
# This is the Front Matter section where you can set variables used by Jekyll
layout: post
title: "Configure Ansible Automation Platform"
description: "Revolutionizing Nut Quality Control with Edge Computer Vision using YOLO V5 and Microshift"
image: /path/to/hero-image.jpg # Path to a hero image (optional)
---

# Configure Ansible Automation Platform

## Prerequisites
* AAP has been deployed on OpenShift

![20240221115730](https://i.imgur.com/bTuaOBp.png)
![20240221111734](https://i.imgur.com/2B5Wckz.png)
![20240221111755](https://i.imgur.com/cgMvq8u.jpeg)
![20240221112012](https://i.imgur.com/OUymygl.png)

![20240221112251](https://i.imgur.com/PaUXYLY.png)

### Optional Install OpenShift Devspaces
* Configure DevSpaces for Ansible Automation Platform Configuration. [Read More](../../deployments/devspaces_configuration)


## Configure AAP
If you did not install the OpenShift Devspaces Operator, you can configure the AAP manually from your laptop using the [ee_definition_config](https://github.com/tosin2013/ee_definition_config) repo.

### Requirements install collections
{% highlight bash %}
ansible-galaxy collection install -r collections/requirements.yml
{% endhighlight %}

### Edit the secret-vars-microshift-ansible-aws-roles.yml
{% highlight bash %}
vim secret-vars-microshift-ansible-aws-roles.yml
{% endhighlight %}

### Load Execution Environment for Ansible AWS Role
{% highlight bash %}
export USERNAME=takinosh
export TAG=latest
ansible-playbook push_to_controller.yaml -e "ee_name_var=ansible-aws-roles" -e "set_ee_registry_dest_var=quay.io/${USERNAME}/ansible-aws-roles:${TAG}" -e "@secret-vars-microshift-ansible-aws-roles.yml"
{% endhighlight %}
![20240221125007](https://i.imgur.com/7kAxN3V.png)

## Configure Controller for Microshift Deployments on AWS
{% highlight bash %}
ansible-playbook microshift-ansible-aws-roles.yaml -e "@secret-vars-microshift-ansible-aws-roles.yml" -e "@projects/ansible-aws-roles/microshift-ansible-aws-vars.yaml" -vvv
{% endhighlight %}
![20240221124855](https://i.imgur.com/3PUdxRK.png)

## Load Execution Environment for edge.microshft collection
{% highlight bash %}
export USERNAME=takinosh
export TAG=latest
ansible-playbook push_to_controller.yaml -e "ee_name_var=edge.microshift" -e "set_ee_registry_dest_var=quay.io/${USERNAME}/edge.microshift:${TAG}" -e "@secret-vars-microshift-ansible-aws-roles.yml"
{% endhighlight %}
![20240221125202](https://i.imgur.com/E37ENMW.png)

## Deploy our application on Microshift.
[Read More](../../deployments/aap_microshift_deployment)
4 changes: 2 additions & 2 deletions _deployments/devspaces_configuration.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -33,5 +33,5 @@ $ oc apply -k https://github.com/tosin2013/sno-quickstarts/gitops/cluster-config
![20240221113930](https://i.imgur.com/Q8fgCUy.png)


## Deploy our application on Microshift.
[Read More](deployments/aap_microshift_deployment)
## Configure Ansible Automation Platform
[Read More](../../deployments/configure_aap)
3 changes: 2 additions & 1 deletion index.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,8 @@ We use Tekton Pipelines for continuous integration and continuous deployment. [R

<!-- Microshift Deployment -->
### Microshift Deployment Instructions
* Configure DevSpaces for Ansible Automation Platform Configuration. [Read More](deployments/devspaces_configuration)
* Configure DevSpaces for Ansible Automation Platform Configuration. [Read More](deployments/devspaces_configuration)
* Configure Ansible Automation Platform. [Read More](deployments/configure_aap)
* Deploy our application on Microshift. [Read More](deployments/aap_microshift_deployment)

<!-- Demo Section
Expand Down

0 comments on commit 54f66b0

Please sign in to comment.