Coder Social home page Coder Social logo

instruqt's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

instruqt's Issues

Write Your First Playbook issue

https://www.ansible.com/products/ansible-training

When attempting to complete the basic Write Your Own Playbook training, I repeatedly ran into issues where I could not proceed. It does not seem to be checking to see if any of the entered code is correct before moving onto the next page, and hence pops an error when trying to reference previous code that it said was correct before but was in fact blank. Can't figure out how to restart the exercise either. I tried in Chrome and Firefox and hit the same bug.

Thanks!

edit: by clicking through the whole course and not entering anything I was able to restart. It still says all the answers are correct without me actually typing anything, which is frustrating.

Network Automation - Backup and Restore, progress 3 has typo error

hello,

during the progress 3, we have step "Step 2 - Execute Network Automation - Restore Job Template" but in the explanation text "To execute the Network Automation - Backup Job Template click the rocket button which incidates the launch job button:"

it should be "[Network Automation - Restore]"

br..
Yaju

[DevOps and CI/CD with automation controller] Course fails to start

Attempting to start the new "DevOps and CI/CD with automation controller" track and it fails to start on the first course of the track. After clicking start and waiting approximately 4 minutes it fails with an error of

Failed to start track
Unable to start track, please try again

I have tried 5 different times and received the same error.

[Getting started with Red Hat Ansible Automation Platform on Microsoft Azure] Multiple Suggestions

  • Use non-admin users to reduce the clutter on the navigation menu
  • Consolidate all infra elements into one job template, add a sample app as a post provisioning step in the workflow template. Not very interesting to see all of those infra steps done in the workflow template. It would be more realistic to keep them in one job template. Perhaps resource group creation can be self standing as well.
  • Workflow names are not legible in the output view. Shorten job and workflow template names

SSH keys for RHEL user not present

Instruqt distributes ssh keys to all nodes in environment for root only. Need to fix images to distribute keys for a non-root user (e.g. rhel user)

(venv) [rhel@ansible tests]$ ansible rhel -i hosts -m ping
[DEPRECATION WARNING]: Ansible will require Python 3.8 or newer on the controller starting with Ansible 2.12. Current version: 3.6.8 (default, Aug 18
2020, 08:33:21) [GCC 8.3.1 20191121 (Red Hat 8.3.1-5)]. This feature will be removed from ansible-core in version 2.12. Deprecation warnings can be
disabled by setting deprecation_warnings=False in ansible.cfg.
node1 | UNREACHABLE! => {
    "changed": false,
    "msg": "Failed to connect to the host via ssh: rhel@node1: Permission denied (publickey,gssapi-keyex,gssapi-with-mic).",
    "unreachable": true
}
(venv) [rhel@ansible tests]$ ssh root@node1
root@node1: Permission denied (publickey,gssapi-keyex,gssapi-with-mic).
(venv) [rhel@ansible tests]$ ssh node1
rhel@node1: Permission denied (publickey,gssapi-keyex,gssapi-with-mic).

Bug: ansible-playbook is not installed in first navigator lab

Running the "Getting started with ansible-navigator" training and in the first set of instructions you are told to run ansible-navigator run ./test.yml -m stdout. After running that I get the following error :
Screen Shot 2021-11-18 at 10 54 43 AM

I verified that the playbook is there :
Screen Shot 2021-11-18 at 10 55 02 AM

Also verified that ansible-playbook is not installed :
Screen Shot 2021-11-18 at 10 55 10 AM

I cannot get passed this first set of instructions because of this.
Screen Shot 2021-11-18 at 10 56 24 AM

It's quite possible this is user error though.

Community tracks unavailable

All tracks linked here are not using the correct embed URL and all tracks are unavailable for public consumption. All embedded tracks need to be updated to include a token. Instructions for obtaining the correct embed code here.

Network backup

Hi, I'm working on network automation backup and restore demo. each time I launch the Network automation - backup " template it come out with the fail result as " toggle fullscreen
Alert iconIncorrect solution 1/1
You have not launched the 'Network Automation - Backup' job template.
I don't know what where is the problem, I checked everything and I configured it well.
thank you for the feedback.

Issue with Writing First Playbook slug ID: playbook-directory-structure

For the program:

  • name:Apache server installed
    hosts: node1
    become: true
    tasks:
    • name: latest Apache version installed
      ansible.builtin.package:
      name: httpd
      state: latest

I am getting an error as below:

The error appears to be in '/home/rhel/ansible-files/apache.yml': line 3, column 9, but may
be elsewhere in the file depending on the exact syntax problem.

The offending line appears to be:

  • name:Apache server installed
    hosts: node1
    ^ here

Could you help me to find the issue with "hosts: node1"

Missing variable - workshop_type

Summary

Error message when building the automation-controller image. Missing workshop_name variable.

Error

packer build --force automation-controller.pkr.hcl
    googlecompute.automation-controller: TASK [ansible.workshops.control_node : Pull supported and workshop images] *****
    googlecompute.automation-controller: task path: /home/craig/.ansible/collections/ansible_collections/ansible/workshops/roles/control_node/tasks/30_controller.yml:95
    googlecompute.automation-controller: fatal: [default]: FAILED! => {
    googlecompute.automation-controller:     "msg": "'workshop_type' is undefined"

Cause

https://github.com/ansible/workshops/blob/edd2f139ca74ccb4d1ab6e9fba00c8ea09fe9f3b/roles/control_node/tasks/30_controller.yml#L95-L103

- name: Pull supported and workshop images
  become_user: "awx"
  containers.podman.podman_image:
    name: "{{ item }}"
  loop:
    - "registry.redhat.io/ansible-automation-platform-20-early-access/ee-supported-rhel8:2.0.0"
    - "registry.redhat.io/ansible-automation-platform-20-early-access/ee-29-rhel8:2.0.0"
    - "registry.redhat.io/ansible-automation-platform-20-early-access/ee-minimal-rhel8:2.0.0"
    - "{{ lookup('vars', workshop_type + '_ee') }}"

Ansible code-server extension

Todo for @cloin

  • Remove vscoss ansible extension
  • Install WIP official ansible extension
  • Install python for vscode extension needed set interpreter
  • Create venv
  • Set python activation script to venv/bin/activate
  • Set python interpreter to venv/bin/python

[Localization] Translation effort for Instruqt tracks

Hi @cloin
I'm opening this issue to track our effort of localizing the Instruqt files into Japanese.

I will proceed with further testings by trying to lock some of the keys and see if the source content imports better in our TMS.
Attaching a screenshot of the issue we've observed in Memsource.

Thanks for the call today, was very informative!
Screen Shot 2022-08-24 at 10 48 43 pm

Python Version 3.6 installed but 3.8 required (ansible-community-developing-ansible-module >> preparing-dev-env)

I started the Challenge and followed the steps, which ended up in an error due to the wrong Python Version (3.6 installed, 3.8 required)

Track: ansible-community-developing-ansible-module
Challenge: preparing-dev-env

(ansible-venv) [devops@shell ansible]$ ansible --version

ERROR: Ansible requires Python 3.8 or newer on the controller. Current version: 3.6.8 (default, Mar 19 2021, 05:13:41) [GCC 8.4.1 20200928 (Red Hat 8.4.1-1)]

Python 3.8 installed, already created venv removed, started over with creating the venv and following the rest of the steps again solved it:

sudo yum install python38
rm -rf ~/ansible/ansible-venv
python3.8 -m venv ansible-venv

ansible-venv) [devops@shell ansible]$ ansible --version

[WARNING]: You are running the development version of Ansible. You should only run Ansible from "devel" if you are modifying the Ansible engine, or trying out
features under development. This is a rapidly changing source of code and can become unstable at any point.
ansible [core 2.12.0.dev0] (devel 8643db5ac3) last updated 2021/09/28 16:06:09 (GMT +000)
  config file = None
  configured module search path = ['/home/devops/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
  ansible python module location = /home/devops/ansible/lib/ansible
  ansible collection location = /home/devops/.ansible/collections:/usr/share/ansible/collections
  executable location = /home/devops/ansible/bin/ansible
  python version = 3.8.6 (default, Jan 29 2021, 17:38:16) [GCC 8.4.1 20200928 (Red Hat 8.4.1-1)]
  jinja version = 3.0.1
  libyaml = True

DevOps and CI/CD with automation controller - timeout issue

One problem I encountered while using the above lab was that my session expired after a certain amount of time (note: I encountered twice, and I think each time was around 15min from the beginning of lab) as I was documenting my experience while testing out the lab. The "session expired" message came while I was typing within the lab so it is not "timeout" due to inactivity. It is quite disturbing because the "restart track" actually will completely start the lab as new. And this means 4-minute-plus to rebuild the lab

[community-fixing-a-bug] create-a-changelog-fragment: Error on "git commit" during missing user.name and user.email settings

community-fixing-a-bug/challenges/create-a-changelog-fragment/assignment

As far i can see neither a git user.name and user.email value is pre-configured nor mentioned in the instructions to add it, so the git commit that should be done as last step will fail and produce an error message.

[devops@shell mysql]$ git add changelogs/fragments/mysql_user_docs.yml plugins/modules/mysql_user.py
[devops@shell mysql]$ git commit -m "Fix mysql_user documentation"

*** Please tell me who you are.

Run

  git config --global user.email "[email protected]"
  git config --global user.name "Your Name"

to set your account's default identity.
Omit --global to set the identity only in this repository.

fatal: empty ident name (for <[email protected]>) not allowed

For sure, can be fixed easy be the user itself, but doesn't look nice in a Beginner Course I think.

[devops@shell mysql]$   git config --global user.email "[email protected]"
[devops@shell mysql]$   git config --global user.name "Your Name"
[devops@shell mysql]$ git commit -m "Fix mysql_user documentation"
[ci_example c1fdbad] Fix mysql_user documentation
 2 files changed, 4 insertions(+)
 create mode 100644 changelogs/fragments/mysql_user_docs.yml

Add EEs to controller node

It would be nice for the EEs installed on the Ansible node to also be installed on Controller node like:

## Execution environments
- name: Pull EEs in rhel user
hosts: all
become_user: rhel
tasks:
- name: include red hat crednetial for registry.redhat.io
include_vars:
file: redhat_login.yml
- name: Login to redhat registry
containers.podman.podman_login:
username: '{{ your_username }}'
password: '{{ your_password }}'
registry: registry.redhat.io
- name: Pull an image
containers.podman.podman_image:
name: "{{ item }}"
loop:
- registry.redhat.io/ansible-automation-platform-20-early-access/ee-minimal-rhel8
- registry.redhat.io/ansible-automation-platform-20-early-access/ansible-builder-rhel8
- registry.redhat.io/ansible-automation-platform-20-early-access/ee-supported-rhel8

Demo Suggestion [Getting started with Azure Pipelines integration]

Build a simple .net application in Azure Pipelines and add a step in the pipeline to hand off to an automation workflow in AAP on Azure. After deployment of the infrastructure and web application, kick back to the pipeline to finish the remaining tests and release code.

  • Benefit of the AAP in the scenario is to centralize all Automation that touches the environment into a single place and keep the Azure Pipelines view simple and effective focusing on what it does best, checking out code, reaching out external systems to finish the build, release code, add gates etc.
  • Both Azure Pipelines and AAP are Azure Services working in conjunction to create effective build and deployment pipelines that can be consumed from Dev perspective (Azure Pipeline entry) or Ops perspective (AAP entry)

Issue with Writing First Playbook slug ID: playbook-run-it

Getting the following error when trying to run this lab:

Last login: Fri Oct 7 15:17:38 UTC 2022 on pts/0
[rhel@control ~]$ cd ansible-files
[rhel@control ansible-files]$ ansible-navigator run apache.yml
[WARNING]: Unable to parse /home/rhel/ansible-files/hosts as an inventory
source
[WARNING]: No inventory was parsed, only implicit localhost is available
[WARNING]: provided hosts list is empty, only localhost is available. Note that
the implicit localhost does not match 'all'
[WARNING]: Could not match supplied host pattern, ignoring: node1

PLAY [Apache server installed] *************************************************
skipping: no hosts matched

PLAY RECAP *********************************************************************

[rhel@control ansible-files]$

[Writing your First Playbook] web issue

On both node1 and node2 nginx is already running and bound to port 80. While the playbooks will work, you'll never see the output of the dev vs prod server in "adding variables to the mix" and you won't see the apache service started when you do "rpm -q httpd" in the "run-it" section.

Recommend stopping nginx as part of the initial creation process

Error in "Getting Started with Ansible builder" self paced lab

When working through the "Populate the ansible-builder spec file and create a custom execution environment" I get an error on the last command "ansible-builder build -v3 -t custom-ee". Looks to be a permission error. See the image attached
Screen Shot 2022-03-03 at 4 04 43 PM
Screen Shot 2022-03-03 at 4 04 43 PM
.

Let me know if you need anymore details.

Thanks,

Matthew Packer
Product Marketing
Ansible Automation

ansible-navigator part 4 error

Incorrect solution 3/3
Oh no, ee-supported-rhel8:2.0.0 wasn't used by ansible-navigator
Alert icon

Doesn't matter what I do, change pull-policy to missing, to always -- always gives same error

New DevOps with automation controller issue issue: incident-creation

At the following step to enter the credentials in gitea - it doesn't accept the credentials:

_ACME Corp uses Gitea for source code management and contains the Let’s Quiz! application code repository.

Click on the Gitea tab on the top of the browser window.
Log into Gitea by clicking the Sign in button in the top right-hand corner and using the provided credentials._

Used the credentials provided as suggested by the learning. But no login possible...

writing your first playbook. Use Navigator and FQCN

Hi team.
We need to update the "Writing your first playbook" lab to use ansible-navigator (and not ansible-playbook), and we need to make sure all modules used are written in FQCN. Please and thank you.

[getting-started-controller] Debug-Info check fails if job was run more than once

The logic in the check-controller script here:

if ! [[ `awx -k jobs list | jq -r '.results[] | select(.summary_fields.job_template.name | match('\"${JOB}$\"';"i")) | .summary_fields.job_template.name'` == "${JOB}" ]]; then

fails if the Debug-Info job has been run more than once. Such as, for example, if the underlying image lacks the Debug-Info Job Template and an unfamiliar student creates one of his own which doesn't quite work right the first time.

A simple fix would be to add a "head -1" to the end so only one result is returned from multiple tries.

redhat_login.yml password in clear text

Issue:

Running packer build command displays redhat_login.yml user_password Ansible variable in clear text

Command

packer build automation-controller.pkr.hcl

license for tower is expired

When creating a new track with the tower image, I am not able to add any hosts to tower as the license is expired.

Instruqt build error using `control_node` role. Missing

Summary

Error message when building the automation-controller image. Missing ec2_name_prefix variable.

Error

packer build --force automation-controller.pkr.hcl
googlecompute.automation-controller:     "msg": "The task includes an option with an undefined variable. The error was: {{ playbook_dir }}/{{ ec2_name_prefix }}: 'ec2_name_prefix' is undefined\n\nThe error appears to be in '/home/craig/.ansible/collections/ansible_collections/ansible/workshops/roles/control_node/tasks/20_all_workshop.yml'

Cause

https://github.com/ansible/workshops/blob/91ee454bdcbee33d551a96431b15de3ce4e37569/roles/control_node/tasks/20_all_workshop.yml#L62

- name: Put ssh-key in proper spot for student
  copy:
    src: "{{ playbook_dir }}/{{ec2_name_prefix}}/{{ec2_name_prefix}}-private.pem"
    dest: "/home/{{ username }}/.ssh/id_rsa"
    owner: "{{ username }}"
    group: "{{ username }}"
    mode: 0400

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.