Commit Graph

31 Commits

Author SHA1 Message Date
Aurélien Bompard
d884a0f8ba Use the combined RabbitMQ CA cert in the clients
Signed-off-by: Aurélien Bompard <aurelien@bompard.org>
2025-04-11 15:15:45 +02:00
Michal Konecny
2ec055db6f Use first uppercase letter for all handlers
This will unify all the handlers to use first uppercase letter for
ansible-lint to stop complaining.

I went through all `notify:` occurrences and fixed them by running
```
set TEXT "text_to_replace"; set REPLACEMENT "replacement_text"; git grep
-rlz "$TEXT" . | xargs -0 sed -i "s/$TEXT/$REPLACEMENT/g"
```

Then I went through all the changes and removed the ones that wasn't
expected to be changed.

Fixes https://pagure.io/fedora-infrastructure/issue/12391

Signed-off-by: Michal Konecny <mkonecny@redhat.com>
2025-02-10 20:31:49 +00:00
Ryan Lerch
47c68f478d ansiblelint fixes - fqcn[action-core] - template to ansible.builtin.template
Replaces references to template: with ansible.builtin.template

Signed-off-by: Ryan Lerch <rlerch@redhat.com>
2025-01-15 11:30:29 +10:00
Ryan Lerch
25391e95b7 ansiblelint fixes - fqcn[action-core] - package to ansible.builtin.package
Replaces many references to  package: with ansible.builtin.package

Signed-off-by: Ryan Lerch <rlerch@redhat.com>
2025-01-15 11:28:00 +10:00
Ryan Lerch
462176464b ansiblelint fixes-- fqcn[action-core] - command to ansible.builtin.command
Replaces many references to  command: with ansible.builtin.command

Signed-off-by: Ryan Lerch <rlerch@redhat.com>
2025-01-15 11:26:47 +10:00
Ryan Lerch
6a3816dfdc ansiblelint fixes-- fqcn[action-core] - copy to ansible.builtin.copy
Replaces many references to 'copy' with ansible.builtin.copy

Signed-off-by: Ryan Lerch <rlerch@redhat.com>
2025-01-15 10:43:31 +10:00
Ryan Lerch
62952df107 ansiblelint fixes-- fqcn[action-core] - file to ansible.builtin.file
Replaces many references to  file: with ansible.builtin.file

Signed-off-by: Ryan Lerch <rlerch@redhat.com>
2025-01-15 10:41:52 +10:00
Ryan Lerch
691adee6ee Fix name[casing] ansible-lint issues
fix 1900 failures of the following case issue:

`name[casing]: All names should start with an uppercase letter.`

Signed-off-by: Ryan Lerch <rlerch@redhat.com>
2025-01-14 20:20:07 +10:00
Ryan Lerch
89f6f1fc32 Fix majority of remaining yamllint warnings and errors
Signed-off-by: Ryan Lerch <rlerch@redhat.com>
2024-11-28 17:31:45 +10:00
Miroslav Suchý
f9b3be2676 retrace: run this on prod too 2020-09-22 19:09:54 +02:00
Miroslav Suchý
f752bbdf33 retrace: fix name of task 2020-09-21 23:30:59 +02:00
Miroslav Suchý
ef3dc87414 retrace: do not check letsencrypt when letsencrypt is not defined 2020-09-17 14:41:51 +02:00
Miroslav Suchý
37b0794bac retrace: add url for faf 2020-04-24 21:34:28 +02:00
Miroslav Suchý
e77a035915 retrace: add env suffix 2020-04-24 21:34:28 +02:00
Miroslav Suchý
018a4f1b82 retrace: add env suffix
https://pagure.io/fedora-infrastructure/issue/8780

addressing:
TASK [abrt/faf-pre : install certs for fedora-messaging] ****************************************************************
Wednesday 25 March 2020  16:47:16 +0000 (0:00:00.799)       0:05:10.000 *******
changed: [retrace-stg.aws.fedoraproject.org] => (item={u'dest': u'ca.crt', u'src': u'/srv/private/ansible/files/rabbitmq/staging/pki/ca.crt', u'mode': 420, u'owner': u'faf'})
An exception occurred during task execution. To see the full traceback, use -vvv. The error was: If you are using a module and expect the file to exist on the remote, see the remote_src option
failed: [retrace-stg.aws.fedoraproject.org] (item={u'dest': u'faf.key', u'src': u'/srv/private/ansible/files/rabbitmq/staging/pki/private/faf.key', u'mode': u'600', u'owner': u'faf'}) => {"ansible_loop_var": "item", "changed": false, "item": {"dest": "faf.key", "mode": "600", "owner": "faf", "src": "/srv/private/ansible/files/rabbitmq/staging/pki/private/faf.key"}, "msg": "Could not find or access '/srv/private/ansible/files/rabbitmq/staging/pki/private/faf.key' on the Ansible Controller.\nIf you are using a module and expect the file to exist on the remote, see the remote_src option"}
An exception occurred during task execution. To see the full traceback, use -vvv. The error was: If you are using a module and expect the file to exist on the remote, see the remote_src option
failed: [retrace-stg.aws.fedoraproject.org] (item={u'dest': u'faf.crt', u'src': u'/srv/private/ansible/files/rabbitmq/staging/pki/issued/faf.crt', u'mode': 420, u'owner': u'faf'}) => {"ansible_loop_var": "item", "changed": false, "item": {"dest": "faf.crt", "mode": 420, "owner": "faf", "src": "/srv/private/ansible/files/rabbitmq/staging/pki/issued/faf.crt"}, "msg": "Could not find or access '/srv/private/ansible/files/rabbitmq/staging/pki/issued/faf.crt' on the Ansible Controller.\nIf you are using a module and expect the file to exist on the remote, see the remote_src option"}
2020-04-24 21:34:28 +02:00
Miroslav Suchý
cc2f7a5cb3 retrace: add again fedora-messaging configs
this has been added in 4d1bcd1802 but later lost when rebased to latest upstream role
2020-04-24 21:34:28 +02:00
Miroslav Suchý
095e467a8c retrace: this is already defined in faf-web.conf 2020-04-24 21:34:28 +02:00
Miroslav Suchý
c4f7b8bdc4 retrace: try this 2020-04-24 21:34:28 +02:00
Miroslav Suchý
b458127fa6 retrace: try this 2020-04-24 21:34:28 +02:00
Miroslav Suchý
27c06d95e8 retrace: try this 2020-04-24 21:34:27 +02:00
Miroslav Suchý
3a13123d61 retrace: enable ssl before we start httpd 2020-04-24 21:34:27 +02:00
Miroslav Suchý
502377d31d retrace: define letsencrypt variable 2020-04-24 21:34:27 +02:00
Miroslav Suchý
86a3b2a613 retrace: move file to correct place 2020-04-24 21:34:27 +02:00
Miroslav Suchý
49ee190d4d retrace: move file to correct place 2020-04-24 21:34:27 +02:00
Miroslav Suchý
c5f1b291a9 retrace: typo 2020-04-24 21:34:27 +02:00
Miroslav Suchý
378604abd6 retrace: use letsencrypt for retrace-stg 2020-04-24 21:34:27 +02:00
Miroslav Suchý
6fc7230adb retrace: create /srv/faf
addressing:
TASK [abrt/faf : run database migrations] *******************************************************************************
Friday 06 March 2020  07:56:21 +0000 (0:00:00.045)       0:04:59.958 **********
fatal: [retrace-stg.aws.fedoraproject.org]: FAILED! => {"ansible_facts": {"discovered_interpreter_python": "/usr/libexec/platform-python"}, "changed": true, "cmd": ["faf-migrate-db"], "delta": "0:00:01.301859", "end": "2020-03-06 07:56:23.505802", "msg": "non-zero return code", "rc": 1, "start": "2020-03-06 07:56:22.203943", "stderr": "[2020-03-06 07:56:23] ERROR:faf.SaveReports: Required directories can't be created: Required directory '/srv/faf/reports/incoming' does not exist and can't be created: Permission denied\nTraceback (most recent call last):\n  File \"/usr/lib/python3.6/site-packages/pyfaf/common.py\", line 140, in ensure_dirs\n    os.makedirs(dirname)\n  File \"/usr/lib64/python3.6/os.py\", line 210, in makedirs\n    makedirs(head, mode, exist_ok)\n  File \"/usr/lib64/python3.6/os.py\", line 210, in makedirs\n    makedirs(head, mode, exist_ok)\n  File \"/usr/lib64/python3.6/os.py\", line 220, in makedirs\n    mkdir(name, mode)\nPermissionError: [Errno 13] Permission denied: '/srv/faf'\n\nDuring handling of the above exception, another exception occurred:\n\nTraceback (most recent call last):\n  File \"/bin/faf-migrate-db\", line 27, in <module>\n    from pyfaf.common import get_connect_string\n  File \"/usr/lib/python3.6/site-packages/pyfaf/__init__.py\", line 25, in <module>\n    from . import cmdline\n  File \"/usr/lib/python3.6/site-packages/pyfaf/cmdline.py\", line 22, in <module>\n    from pyfaf.actions import actions\n  File \"/usr/lib/python3.6/site-packages/pyfaf/actions/__init__.py\", line 106, in <module>\n    load_plugins(Action, actions)\n  File \"/usr/lib/python3.6/site-packages/pyfaf/common.py\", line 113, in load_plugins\n    result[plugin.name] = plugin()\n  File \"/usr/lib/python3.6/site-packages/pyfaf/actions/save_reports.py\", line 69, in __init__\n    self.dir_attach_saved, self.dir_attach_deferred])\n  File \"/usr/lib/python3.6/site-packages/pyfaf/common.py\", line 145, in ensure_dirs\n    .format(dirname, ex.strerror))\npyfaf.common.FafError: Required directory '/srv/faf/reports/incoming' does not exist and can't be created: Permission denied", "stderr_lines": ["[2020-03-06 07:56:23] ERROR:faf.SaveReports: Required directories can't be created: Required directory '/srv/faf/reports/incoming' does not exist and can't be created: Permission denied", "Traceback (most recent call last):", "  File \"/usr/lib/python3.6/site-packages/pyfaf/common.py\", line 140, in ensure_dirs", "    os.makedirs(dirname)", "  File \"/usr/lib64/python3.6/os.py\", line 210, in makedirs", "    makedirs(head, mode, exist_ok)", "  File \"/usr/lib64/python3.6/os.py\", line 210, in makedirs", "    makedirs(head, mode, exist_ok)", "  File \"/usr/lib64/python3.6/os.py\", line 220, in makedirs", "    mkdir(name, mode)", "PermissionError: [Errno 13] Permission denied: '/srv/faf'", "", "During handling of the above exception, another exception occurred:", "", "Traceback (most recent call last):", "  File \"/bin/faf-migrate-db\", line 27, in <module>", "    from pyfaf.common import get_connect_string", "  File \"/usr/lib/python3.6/site-packages/pyfaf/__init__.py\", line 25, in <module>", "    from . import cmdline", "  File \"/usr/lib/python3.6/site-packages/pyfaf/cmdline.py\", line 22, in <module>", "    from pyfaf.actions import actions", "  File \"/usr/lib/python3.6/site-packages/pyfaf/actions/__init__.py\", line 106, in <module>", "    load_plugins(Action, actions)", "  File \"/usr/lib/python3.6/site-packages/pyfaf/common.py\", line 113, in load_plugins", "    result[plugin.name] = plugin()", "  File \"/usr/lib/python3.6/site-packages/pyfaf/actions/save_reports.py\", line 69, in __init__", "    self.dir_attach_saved, self.dir_attach_deferred])", "  File \"/usr/lib/python3.6/site-packages/pyfaf/common.py\", line 145, in ensure_dirs", "    .format(dirname, ex.strerror))", "pyfaf.common.FafError: Required directory '/srv/faf/reports/incoming' does not exist and can't be created: Permission denied"], "stdout": "", "stdout_lines": []}
2020-04-24 21:34:26 +02:00
Miroslav Suchý
a41c1c217f retrace: checkpoint_segments does not exists in PG10 2020-04-24 21:34:26 +02:00
Miroslav Suchý
b7ccda8f59 retrace: do not init pg twice 2020-04-24 21:34:26 +02:00
Miroslav Suchý
103e5fd3f0 retrace: make sure posgresql data dir is available 2020-04-24 21:34:26 +02:00
Ernestas Kulik
45d448ae5b Rename local retrace roles
The “local” bit is quite redundant and they are otherwise confusingly
named.
2020-04-24 21:34:23 +02:00