Marcelo Moreira de Mello
f1b8a63d91
Ability to import standard pgdump into Openshift
2020-09-23 22:33:57 -04:00
Brant Evans
512da5a01c
Add custom root ca certificate via configmap
...
Signed-off-by: Brant Evans <bevans@redhat.com>
2020-09-22 16:42:39 -07:00
Taras Dyshkant
e4095a0c27
Fix broadcast_websocket_secret length
...
Password lookup parameters must be within the same set of quotes.
Otherwise a default value of length is used (20).
2020-08-21 16:43:07 +03:00
JoelKle
caab751215
Added the ability, to set the broadcast_websocket_secret variable.
...
This is nessesary if you would like to rerun the playbook.
Signed-off-by: JoelKle <34544090+JoelKle@users.noreply.github.com>
2020-07-03 08:59:28 +02:00
Shane McDonald
7f81f530fa
Copy over downstream change
...
Allows users to specify pg_username that has uppercase letters to restore succesfully
2020-07-01 14:40:38 -04:00
Shane McDonald
43bf2989af
Support PVCs that were created w/ WaitForFirstConsumer
2020-06-17 16:40:33 -04:00
Bill Nottingham
64e3135754
Only build one awx image instead of separate web and task images
2020-06-03 10:48:48 -04:00
softwarefactory-project-zuul[bot]
9d42b8f0f2
Merge pull request #7189 from wenottingham/aaargh
...
Hardcode --kubeconfig and therefore only support OpenShift 3.11+
Reviewed-by: https://github.com/apps/softwarefactory-project-zuul
2020-05-29 23:44:16 +00:00
Shane McDonald
747fdf38d8
Stop bouncing k8s deployment post-install
...
We shouldnt need to do this now that RabbitMQ autoclustering is gone.
2020-05-29 13:47:33 -04:00
Bill Nottingham
0f0e401c98
Hardcode --kubeconfig and therefore only support OpenShift 3.11+
...
Avoid trying to parse inconsitent oc --version output
2020-05-29 13:41:49 -04:00
Shane McDonald
a461df0e4d
Fix installer for oc 4.3
2020-05-06 11:40:07 -04:00
Christian Adams
346b9b9e3e
ConfigMap supervisor configs and launch scripts for k8s
2020-04-02 13:56:33 -04:00
Shane McDonald
d57258878d
Update more references to statefulset
2020-04-02 12:44:26 -04:00
Shane McDonald
ff0186f72b
Delete k8s StatefulSet if it exists (for upgrades)
2020-04-02 12:21:35 -04:00
Shane McDonald
3060505110
Switch from StatefulSet to Deployment
...
We can do this now that we dropped RabbitMQ.
2020-04-02 09:24:49 -04:00
Armin Kunaschik
2b3c57755c
support for older jinja2 in installer
2020-03-28 02:59:40 +01:00
chris meyers
eab74cac07
autogenerate websocket secret
2020-03-26 10:32:37 -04:00
Shane McDonald
45ce6d794e
Initial migration of rabbitmq -> redis for k8s installs
2020-03-18 16:10:17 -04:00
softwarefactory-project-zuul[bot]
f4f4a7caec
Merge pull request #5851 from xelgand/devel
...
k8s installer: fix warning when applying deployment
Reviewed-by: https://github.com/apps/softwarefactory-project-zuul
2020-02-10 18:20:36 +00:00
xelgand
7b9ad1d69a
k8s installer: fix warning when applying deployment
2020-02-09 16:35:10 +01:00
Bryan Hundven
7d2ed7b763
Bump stable/postgresql to 8.3.0
...
https://hub.helm.sh/charts/stable/postgresql/8.3.0
Signed-off-by: Bryan Hundven <bryanhundven@gmail.com>
2020-02-07 15:07:44 -08:00
Bryan Hundven
76a6f84c70
Remove tempfile after running helm
...
Signed-off-by: Bryan Hundven <bryanhundven@gmail.com>
2020-02-07 12:04:11 -08:00
Bryan Hundven
a984e5df7a
Have helm stable repo before running help repo update
...
It would be nice if the `helm` ansible module allowed you to just manage
helm repos, or maybe a `helm_repo` module... but shell with it ;)
Signed-off-by: Bryan Hundven <bryanhundven@gmail.com>
2020-02-07 11:58:18 -08:00
Bryan Hundven
1c50b8427a
Put postgresql values in a tempfile, to be loaded by helm cli
...
Helm 3.x does not support passing values via stdin:
https://github.com/helm/helm/issues/7002
So setup a tempfile and write the template to the tempfile to be loaded
by helm ... --values <tempfile>
Signed-off-by: Bryan Hundven <bryanhundven@gmail.com>
2020-02-04 09:26:49 -08:00
Bryan Hundven
34d01f02cc
Upgrade stable/postgresql to helm chart to 8.1.5
...
This updated chart supports Helm 3.x
Signed-off-by: Bryan Hundven <bryanhundven@gmail.com>
2020-02-04 09:26:49 -08:00
Bryan Hundven
d182c96c2e
Make AWX compatible with Helm 3.x
...
In issue #5371 , AWX has issues with using Helm 3.x.
This commit removes the usage tiller.
Signed-off-by: Bryan Hundven <bryanhundven@gmail.com>
2020-02-04 09:26:49 -08:00
Shane McDonald
3977ec42e1
Add kubectl / oc-specific API server version logic
2020-01-15 17:12:53 -05:00
Ryan Petrello
b1f56df930
fix linting failures
2020-01-13 15:58:19 -05:00
Shane McDonald
d3b7829e69
Pull in downstream k8s installer changes
2020-01-08 11:04:12 -05:00
James Smith
c4df5f64c1
change set-context to use-context
...
set-context allows setting configuration within a provided context, to change contexts we need "use-context"
$ kubectl config
...
set-context Sets a context entry in kubeconfig
use-context Sets the current-context in a kubeconfig file
2020-01-07 16:01:54 -06:00
Ryan Petrello
7396e2e7ac
add an awx-manage command for re-generating SECRET_KEY
2019-12-12 16:19:20 -05:00
Yanis Guenane
f8b2bcbae7
Linters: test new linter job
...
Depends-On: https://github.com/ansible/zuul-jobs/pull/40
2019-12-04 19:05:17 +01:00
softwarefactory-project-zuul[bot]
02c3e1c32f
Merge pull request #5420 from Spredzy/yamllint
...
yamllint: Make all files in awx pass yamllint
Reviewed-by: https://github.com/apps/softwarefactory-project-zuul
2019-12-04 13:42:56 +00:00
Shane McDonald
e68d576fd2
Generic method of detecting k8s api version
...
Related: https://github.com/ansible/awx/issues/5388
2019-12-02 11:45:20 -05:00
Yanis Guenane
ca247182df
yamllint: Make all files in awx pass yamllint
...
This commit updates all files that weren't passing yamllint for them to
pass.
A new yamllint target has been added. One can run `tox -e yamllint` or
`yamllint -s .` locally to ensure yaml files are still passing.
This check will be enabled in the CI so it can get on every new
contributions, and prevent merging non-compliant code.
Signed-off-by: Yanis Guenane <yguenane@redhat.com>
2019-12-02 15:12:51 +01:00
Shane McDonald
dcbb2813b5
Pull in downstream changes to k8s installer
2019-12-02 08:12:51 -05:00
Ilija Matoski
e2cd86089b
Allow deployments on Kubernetes version 1.16
2019-11-20 23:54:10 +01:00
Shane McDonald
fa278f83ad
Fix k8s installs using external db
2019-11-04 09:35:11 -05:00
lopf
432daa6139
fix 5089
2019-10-24 14:44:36 +02:00
Shane McDonald
8356327c2b
Downstream k8s installer changes
2019-10-22 15:57:40 -04:00
Christian Adams
ec1e93cc69
Upgrade to postgres 10.6
...
- use awx-python in shebang in dev env
- scl enable where needed for rhel7 & container installs
- use scram-sha-256 pg user hashing by default
- ensure psycopg2 is using the correct PG_CONFIG at build time for the right libpq version
2019-09-12 12:52:43 -04:00
Gabriel Totusek
794808cd10
Fix compatibility with postgresql helm chart v6.0.0+
2019-08-12 02:40:25 -07:00
Gabriel Totusek
d932a70eff
Downgrade postgres helm chart to v5.3.13
2019-08-12 00:43:09 -07:00
Gabriel Totusek
90e5b0a12d
Update postgres helm chart to v6.2.1
2019-08-11 23:16:43 -07:00
Gabriel Totusek
f705eba7ed
Add support for kubernetes tolerations, nodeSelector, and affinity
2019-08-11 23:10:56 -07:00
Yanis Guenane
11630a8803
Installer: quote password where it applies
...
Prior to this change, password having shell interpretable character
would break the installer (e.g '&', '(', etc... )
This commits rely on the `quote` filter from ansible to ensure those
password are properly quoted where it applies
Fixes: https://github.com/ansible/awx/issues/3943
Signed-off-by: Yanis Guenane <yguenane@redhat.com>
2019-06-03 11:50:52 +02:00
Yanis Guenane
99296cf5f1
openshift: Ensure char in password are not interpreted
...
If password contains ';' (and potentially any shell interpretable chars)
it won't be interpreted properly as the openshift password.
Signed-off-by: Yanis Guenane <yguenane@redhat.com>
2019-05-31 03:00:13 +02:00
Klaas Demter
8f36e21c97
Avoid pg password ending up in syslog/shell output
...
Currently if an error occurs the pgpassword would be exposed to syslog / shell during playbook backup.yml
2019-02-15 16:15:33 +01:00
softwarefactory-project-zuul[bot]
7b39198f26
Merge pull request #2995 from coreywan/postgres_helm
...
adds persistence.storageClass and limits to postgress helm install
Reviewed-by: https://github.com/softwarefactory-project-zuul[bot]
2019-01-18 04:24:18 +00:00
softwarefactory-project-zuul[bot]
474876872e
Merge pull request #2999 from themr0c/issue-2991
...
related #2991 - Helm creation of postgreql on multiple namespaces
Reviewed-by: https://github.com/softwarefactory-project-zuul[bot]
2019-01-17 14:28:05 +00:00