Skip to content

Instantly share code, notes, and snippets.

View Aethylred's full-sized avatar

Aaron Hicks Aethylred

  • NIWA
  • Foxton, New Zealand
View GitHub Profile
@Aethylred
Aethylred / gist:bebf81ebdd1fd499beb513c239602f15
Created July 16, 2018 22:50
awx-manage read only database issue
[awx@awx01 ~]$ awx-manage migrate --noinput --fake-initial
Operations to perform:
Apply all migrations: auth, conf, contenttypes, djcelery, main, network_ui, oauth2_provider, sessions, sites, social_django, sso, taggit
Running migrations:
Applying contenttypes.0001_initial...Traceback (most recent call last):
File "/usr/local/bin/awx-manage", line 9, in <module>
load_entry_point('awx', 'console_scripts', 'awx-manage')()
File "/usr/lib/python2.7/site-packages/awx-1.0.6-py2.7.egg/awx/__init__.py", line 109, in manage
execute_from_command_line(sys.argv)
File "/usr/lib64/python2.7/site-packages/django/core/management/__init__.py", line 364, in execute_from_command_line
@Aethylred
Aethylred / pip-iter.yaml
Last active July 19, 2018 21:21
Iterate over a pip requirements.txt file
- name: Debug pip with large requirements file
hosts: 127.0.0.1
connection: local
become: yes
tasks:
- name: Get the requirements file
slurp:
src: /opt/awx/requirements/requirements.txt
register: reqfile
@Aethylred
Aethylred / gist:0ea0d2899eca1da790aa078f9f2a885a
Last active October 31, 2023 20:52
freeipa-api-ansible-inventory
#!/usr/bin/env python
# This script uses the FreeIPA API to create an Ansible dynamic directory
# This is a shell script version of freeipa-api-inv.py
#
# DEPENDENCIES: before this script will work with AWX or Tower
# the python_freeipa module has to be installed
#
# Add this to your Docker image
# RUN pip install python_freeipa
#
@Aethylred
Aethylred / freeipa_auth_suse.md
Last active February 26, 2022 23:54
Setting up FreeIPA authentication onf SUSE/SLE 12 SP2

This is the manual process for enrolling a host running SUSE/SLE 12 SP2 with FreeIPA.

The following reference documentation was used to create this process:

I do not recommend using yast to set this up, however it is useful to check if the configuration is valid. SUSE/SLE has all the required packages to use FreeIPA but does not have the conveinent ipa-client tools, such as ipa-client-install.

Pre-Requisites