Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Install python modules required for embedded ansible credentials #341

Merged
merged 2 commits into from
Aug 9, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions kickstarts/partials/packages/includes.ks.erb
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ openslp-devel # build requires
postgresql # appliance section
postgresql-devel # for pg gem
postgresql-server # appliance section
python-devel # for building python modules in post
repmgr10
smem # for PSS, USS with forked processes
screen
Expand Down
127 changes: 127 additions & 0 deletions kickstarts/partials/post/python_modules.ks.erb
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,130 @@ pip install vspk==5.3.2

# For Lenovo
pip install pylxca==2.1.1

# For embedded ansible
pip install virtualenv

mkdir -p /var/lib/manageiq/
pushd /var/lib/manageiq
virtualenv venv
source venv/bin/activate

cat > requirements.txt << EOF
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor, but would this be better as a straight file in COPY?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I considered that, but thought that it might be more natural to keep what is essentially a packages list in this repo rather than in manageiq-appliance.

adal==1.2.1
apache-libcloud==2.5.0
appdirs==1.4.3
applicationinsights==0.11.1
argcomplete==1.9.4
asn1crypto==0.24.0
azure-cli-core==2.0.35
azure-cli-nspkg==3.0.2
azure-common==1.1.11
azure-graphrbac==0.40.0
azure-keyvault==1.0.0a1
azure-mgmt-authorization==0.51.1
azure-mgmt-batch==5.0.1
azure-mgmt-cdn==3.0.0
azure-mgmt-compute==4.4.0
azure-mgmt-containerinstance==1.4.0
azure-mgmt-containerregistry==2.0.0
azure-mgmt-containerservice==4.4.0
azure-mgmt-cosmosdb==0.5.2
azure-mgmt-devtestlabs==3.0.0
azure-mgmt-dns==2.1.0
azure-mgmt-hdinsight==0.1.0
azure-mgmt-keyvault==1.1.0
azure-mgmt-loganalytics==0.2.0
azure-mgmt-marketplaceordering==0.1.0
azure-mgmt-monitor==0.5.2
azure-mgmt-network==2.3.0
azure-mgmt-nspkg==2.0.0
azure-mgmt-rdbms==1.4.1
azure-mgmt-redis==5.0.0
azure-mgmt-resource==2.1.0
azure-mgmt-servicebus==0.5.3
azure-mgmt-sql==0.10.0
azure-mgmt-storage==3.1.0
azure-mgmt-trafficmanager==0.50.0
azure-mgmt-web==0.41.0
azure-nspkg==2.0.0
azure-storage==0.35.1
backports.ssl-match-hostname==3.5.0.1
bcrypt==3.1.4
boto==2.47.0
boto3==1.6.2
botocore==1.9.3
cachetools==3.0.0
certifi==2018.1.18
cffi==1.11.5
chardet==3.0.4
colorama==0.3.9
cryptography==2.6.1
decorator==4.2.1
deprecation==2.0
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

docutils==0.14
dogpile.cache==0.6.5
google-auth==1.6.2
humanfriendly==4.8
idna==2.6
ipaddress==1.0.19
iso8601==0.1.12
isodate==0.6.0
Jinja2==2.10.1
jmespath==0.9.3
jsonpatch==1.21
jsonpointer==2.0
keystoneauth1==3.11.2
knack==0.3.3
lxml==4.1.1
MarkupSafe==1.1.1
monotonic==1.4
msrest==0.6.1
msrestazure==0.5.0
munch==2.2.0
ncclient==0.6.3
netaddr==0.7.19
netifaces==0.10.6
ntlm-auth==1.0.6
oauthlib==2.0.6
openstacksdk==0.23.0
os-service-types==1.2.0
ovirt-engine-sdk-python==4.2.4
packaging==17.1
paramiko==2.4.2
pbr==3.1.1
pexpect==4.6.0
psutil==5.4.3
ptyprocess==0.5.2
pyasn1==0.4.2
pyasn1-modules==0.2.3
pycparser==2.18
Pygments==2.2.0
PyJWT==1.6.0
pykerberos==1.2.1
PyNaCl==1.2.1
pyOpenSSL==17.5.0
pyparsing==2.2.0
python-dateutil==2.6.1
pyvmomi==6.5
pywinrm==0.3.0
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This one is the only one that has a different notation (pywinrm[kerberos]==0.3.0) in the ansible/awx file:

https://github.com/ansible/awx/blob/c7bb0f10/requirements/requirements_ansible.txt#L99

PyYAML==5.1
requests==2.20.0
requests-credssp==0.1.0
requests-kerberos==0.12.0
requests-ntlm==1.1.0
requests-oauthlib==0.8.0
requestsexceptions==1.4.0
s3transfer==0.1.13
selectors2==2.0.1
six==1.11.0
stevedore==1.28.0
tabulate==0.7.7
urllib3==1.24.3
xmltodict==0.11.0
EOF

pip install -r requirements.txt

deactivate
popd