From 9304009a8260a21d74e482a2e0f34865362ee787 Mon Sep 17 00:00:00 2001 From: Petr Bokoc Date: May 29 2026 08:46:40 +0000 Subject: Migrate to forgejo and archive --- diff --git a/.gitignore b/.gitignore deleted file mode 100644 index 3180b2f..0000000 --- a/.gitignore +++ /dev/null @@ -1,13 +0,0 @@ -# Documentation artifacts -# Antora-specific rules for preview documentation -_package/ -_preview/ - -# Miscellaneous artifacts -build -cache -public - -# Ansible / Vagrant leftovers -**/.vagrant -*.retry diff --git a/.pagure/CONTRIBUTING.md b/.pagure/CONTRIBUTING.md deleted file mode 100644 index 22ba81f..0000000 --- a/.pagure/CONTRIBUTING.md +++ /dev/null @@ -1,56 +0,0 @@ -How to contribute to TeleIRC SIG documentation -============================================== - - - -Report issues and submit pull requests for **Content Fixes** to [TeleIRC SIG documentation](https://docs.fedoraproject.org/en-US/???/) here. -General appearance issues and publishing issues should be reported against the [publishing software](https://pagure.io/fedora-docs/docs-fp-o). - -Never done a pull request (or "PR")? -See the [GitHub Guides](https://guides.github.com/) for getting started with git. -If you already know git, see the [Pagure documentation for Pull Requests](https://docs.pagure.org/pagure/usage/pull_requests.html) on how to submit contributions on pagure.io. - - -## How to edit these documents - -Content for the documentation is stored [in this repository](https://pagure.io/sig-teleirc/infrastructure/tree/). -Source content is written in [AsciiDoc](http://asciidoc.org/). -See these resources for help using AsciiDoc: - -* [AsciiDoc Syntax - Quick Reference](http://asciidoctor.org/docs/asciidoc-syntax-quick-reference/) -* [AsciiDoc Recommended Practices](https://asciidoctor.org/docs/asciidoc-recommended-practices/) - - - - -## Test with a local preview - -This repo includes scripts to build and preview the contents of this repository. - -**NOTE**: Please note that if you reference pages from other repositories, those links will be broken in the local preview, as it only builds this repository. -If you want to rebuild the whole Fedora Docs site, see the [Fedora Docs build repository](https://pagure.io/fedora-docs/docs-fp-o/) for instructions. - -Both of the below scripts use Docker, so ensure Docker is installed on your system before beginning (see below for Fedora instructions). -See below for further instructions. - -To build and preview the site, run: - -```bash -./build.sh && ./preview.sh -``` - -The preview is hosted at [http://localhost:8080](http://localhost:8080). - -### Installing Docker on Fedora - -See the Fedora Developer Portal on [how to install Docker on Fedora](https://developer.fedoraproject.org/tools/docker/docker-installation.html "How to install Docker on Fedora") diff --git a/LICENSE.txt b/LICENSE.txt deleted file mode 100644 index a612ad9..0000000 --- a/LICENSE.txt +++ /dev/null @@ -1,373 +0,0 @@ -Mozilla Public License Version 2.0 -================================== - -1. Definitions --------------- - -1.1. "Contributor" - means each individual or legal entity that creates, contributes to - the creation of, or owns Covered Software. - -1.2. "Contributor Version" - means the combination of the Contributions of others (if any) used - by a Contributor and that particular Contributor's Contribution. - -1.3. "Contribution" - means Covered Software of a particular Contributor. - -1.4. "Covered Software" - means Source Code Form to which the initial Contributor has attached - the notice in Exhibit A, the Executable Form of such Source Code - Form, and Modifications of such Source Code Form, in each case - including portions thereof. - -1.5. "Incompatible With Secondary Licenses" - means - - (a) that the initial Contributor has attached the notice described - in Exhibit B to the Covered Software; or - - (b) that the Covered Software was made available under the terms of - version 1.1 or earlier of the License, but not also under the - terms of a Secondary License. - -1.6. "Executable Form" - means any form of the work other than Source Code Form. - -1.7. "Larger Work" - means a work that combines Covered Software with other material, in - a separate file or files, that is not Covered Software. - -1.8. "License" - means this document. - -1.9. "Licensable" - means having the right to grant, to the maximum extent possible, - whether at the time of the initial grant or subsequently, any and - all of the rights conveyed by this License. - -1.10. "Modifications" - means any of the following: - - (a) any file in Source Code Form that results from an addition to, - deletion from, or modification of the contents of Covered - Software; or - - (b) any new file in Source Code Form that contains any Covered - Software. - -1.11. "Patent Claims" of a Contributor - means any patent claim(s), including without limitation, method, - process, and apparatus claims, in any patent Licensable by such - Contributor that would be infringed, but for the grant of the - License, by the making, using, selling, offering for sale, having - made, import, or transfer of either its Contributions or its - Contributor Version. - -1.12. "Secondary License" - means either the GNU General Public License, Version 2.0, the GNU - Lesser General Public License, Version 2.1, the GNU Affero General - Public License, Version 3.0, or any later versions of those - licenses. - -1.13. "Source Code Form" - means the form of the work preferred for making modifications. - -1.14. "You" (or "Your") - means an individual or a legal entity exercising rights under this - License. For legal entities, "You" includes any entity that - controls, is controlled by, or is under common control with You. For - purposes of this definition, "control" means (a) the power, direct - or indirect, to cause the direction or management of such entity, - whether by contract or otherwise, or (b) ownership of more than - fifty percent (50%) of the outstanding shares or beneficial - ownership of such entity. - -2. License Grants and Conditions --------------------------------- - -2.1. Grants - -Each Contributor hereby grants You a world-wide, royalty-free, -non-exclusive license: - -(a) under intellectual property rights (other than patent or trademark) - Licensable by such Contributor to use, reproduce, make available, - modify, display, perform, distribute, and otherwise exploit its - Contributions, either on an unmodified basis, with Modifications, or - as part of a Larger Work; and - -(b) under Patent Claims of such Contributor to make, use, sell, offer - for sale, have made, import, and otherwise transfer either its - Contributions or its Contributor Version. - -2.2. Effective Date - -The licenses granted in Section 2.1 with respect to any Contribution -become effective for each Contribution on the date the Contributor first -distributes such Contribution. - -2.3. Limitations on Grant Scope - -The licenses granted in this Section 2 are the only rights granted under -this License. No additional rights or licenses will be implied from the -distribution or licensing of Covered Software under this License. -Notwithstanding Section 2.1(b) above, no patent license is granted by a -Contributor: - -(a) for any code that a Contributor has removed from Covered Software; - or - -(b) for infringements caused by: (i) Your and any other third party's - modifications of Covered Software, or (ii) the combination of its - Contributions with other software (except as part of its Contributor - Version); or - -(c) under Patent Claims infringed by Covered Software in the absence of - its Contributions. - -This License does not grant any rights in the trademarks, service marks, -or logos of any Contributor (except as may be necessary to comply with -the notice requirements in Section 3.4). - -2.4. Subsequent Licenses - -No Contributor makes additional grants as a result of Your choice to -distribute the Covered Software under a subsequent version of this -License (see Section 10.2) or under the terms of a Secondary License (if -permitted under the terms of Section 3.3). - -2.5. Representation - -Each Contributor represents that the Contributor believes its -Contributions are its original creation(s) or it has sufficient rights -to grant the rights to its Contributions conveyed by this License. - -2.6. Fair Use - -This License is not intended to limit any rights You have under -applicable copyright doctrines of fair use, fair dealing, or other -equivalents. - -2.7. Conditions - -Sections 3.1, 3.2, 3.3, and 3.4 are conditions of the licenses granted -in Section 2.1. - -3. Responsibilities -------------------- - -3.1. Distribution of Source Form - -All distribution of Covered Software in Source Code Form, including any -Modifications that You create or to which You contribute, must be under -the terms of this License. You must inform recipients that the Source -Code Form of the Covered Software is governed by the terms of this -License, and how they can obtain a copy of this License. You may not -attempt to alter or restrict the recipients' rights in the Source Code -Form. - -3.2. Distribution of Executable Form - -If You distribute Covered Software in Executable Form then: - -(a) such Covered Software must also be made available in Source Code - Form, as described in Section 3.1, and You must inform recipients of - the Executable Form how they can obtain a copy of such Source Code - Form by reasonable means in a timely manner, at a charge no more - than the cost of distribution to the recipient; and - -(b) You may distribute such Executable Form under the terms of this - License, or sublicense it under different terms, provided that the - license for the Executable Form does not attempt to limit or alter - the recipients' rights in the Source Code Form under this License. - -3.3. Distribution of a Larger Work - -You may create and distribute a Larger Work under terms of Your choice, -provided that You also comply with the requirements of this License for -the Covered Software. If the Larger Work is a combination of Covered -Software with a work governed by one or more Secondary Licenses, and the -Covered Software is not Incompatible With Secondary Licenses, this -License permits You to additionally distribute such Covered Software -under the terms of such Secondary License(s), so that the recipient of -the Larger Work may, at their option, further distribute the Covered -Software under the terms of either this License or such Secondary -License(s). - -3.4. Notices - -You may not remove or alter the substance of any license notices -(including copyright notices, patent notices, disclaimers of warranty, -or limitations of liability) contained within the Source Code Form of -the Covered Software, except that You may alter any license notices to -the extent required to remedy known factual inaccuracies. - -3.5. Application of Additional Terms - -You may choose to offer, and to charge a fee for, warranty, support, -indemnity or liability obligations to one or more recipients of Covered -Software. However, You may do so only on Your own behalf, and not on -behalf of any Contributor. You must make it absolutely clear that any -such warranty, support, indemnity, or liability obligation is offered by -You alone, and You hereby agree to indemnify every Contributor for any -liability incurred by such Contributor as a result of warranty, support, -indemnity or liability terms You offer. You may include additional -disclaimers of warranty and limitations of liability specific to any -jurisdiction. - -4. Inability to Comply Due to Statute or Regulation ---------------------------------------------------- - -If it is impossible for You to comply with any of the terms of this -License with respect to some or all of the Covered Software due to -statute, judicial order, or regulation then You must: (a) comply with -the terms of this License to the maximum extent possible; and (b) -describe the limitations and the code they affect. Such description must -be placed in a text file included with all distributions of the Covered -Software under this License. Except to the extent prohibited by statute -or regulation, such description must be sufficiently detailed for a -recipient of ordinary skill to be able to understand it. - -5. Termination --------------- - -5.1. The rights granted under this License will terminate automatically -if You fail to comply with any of its terms. However, if You become -compliant, then the rights granted under this License from a particular -Contributor are reinstated (a) provisionally, unless and until such -Contributor explicitly and finally terminates Your grants, and (b) on an -ongoing basis, if such Contributor fails to notify You of the -non-compliance by some reasonable means prior to 60 days after You have -come back into compliance. Moreover, Your grants from a particular -Contributor are reinstated on an ongoing basis if such Contributor -notifies You of the non-compliance by some reasonable means, this is the -first time You have received notice of non-compliance with this License -from such Contributor, and You become compliant prior to 30 days after -Your receipt of the notice. - -5.2. If You initiate litigation against any entity by asserting a patent -infringement claim (excluding declaratory judgment actions, -counter-claims, and cross-claims) alleging that a Contributor Version -directly or indirectly infringes any patent, then the rights granted to -You by any and all Contributors for the Covered Software under Section -2.1 of this License shall terminate. - -5.3. In the event of termination under Sections 5.1 or 5.2 above, all -end user license agreements (excluding distributors and resellers) which -have been validly granted by You or Your distributors under this License -prior to termination shall survive termination. - -************************************************************************ -* * -* 6. Disclaimer of Warranty * -* ------------------------- * -* * -* Covered Software is provided under this License on an "as is" * -* basis, without warranty of any kind, either expressed, implied, or * -* statutory, including, without limitation, warranties that the * -* Covered Software is free of defects, merchantable, fit for a * -* particular purpose or non-infringing. The entire risk as to the * -* quality and performance of the Covered Software is with You. * -* Should any Covered Software prove defective in any respect, You * -* (not any Contributor) assume the cost of any necessary servicing, * -* repair, or correction. This disclaimer of warranty constitutes an * -* essential part of this License. No use of any Covered Software is * -* authorized under this License except under this disclaimer. * -* * -************************************************************************ - -************************************************************************ -* * -* 7. Limitation of Liability * -* -------------------------- * -* * -* Under no circumstances and under no legal theory, whether tort * -* (including negligence), contract, or otherwise, shall any * -* Contributor, or anyone who distributes Covered Software as * -* permitted above, be liable to You for any direct, indirect, * -* special, incidental, or consequential damages of any character * -* including, without limitation, damages for lost profits, loss of * -* goodwill, work stoppage, computer failure or malfunction, or any * -* and all other commercial damages or losses, even if such party * -* shall have been informed of the possibility of such damages. This * -* limitation of liability shall not apply to liability for death or * -* personal injury resulting from such party's negligence to the * -* extent applicable law prohibits such limitation. Some * -* jurisdictions do not allow the exclusion or limitation of * -* incidental or consequential damages, so this exclusion and * -* limitation may not apply to You. * -* * -************************************************************************ - -8. Litigation -------------- - -Any litigation relating to this License may be brought only in the -courts of a jurisdiction where the defendant maintains its principal -place of business and such litigation shall be governed by laws of that -jurisdiction, without reference to its conflict-of-law provisions. -Nothing in this Section shall prevent a party's ability to bring -cross-claims or counter-claims. - -9. Miscellaneous ----------------- - -This License represents the complete agreement concerning the subject -matter hereof. If any provision of this License is held to be -unenforceable, such provision shall be reformed only to the extent -necessary to make it enforceable. Any law or regulation which provides -that the language of a contract shall be construed against the drafter -shall not be used to construe this License against a Contributor. - -10. Versions of the License ---------------------------- - -10.1. New Versions - -Mozilla Foundation is the license steward. Except as provided in Section -10.3, no one other than the license steward has the right to modify or -publish new versions of this License. Each version will be given a -distinguishing version number. - -10.2. Effect of New Versions - -You may distribute the Covered Software under the terms of the version -of the License under which You originally received the Covered Software, -or under the terms of any subsequent version published by the license -steward. - -10.3. Modified Versions - -If you create software not governed by this License, and you want to -create a new license for such software, you may create and use a -modified version of this License if you rename the license and remove -any references to the name of the license steward (except to note that -such modified license differs from this License). - -10.4. Distributing Source Code Form that is Incompatible With Secondary -Licenses - -If You choose to distribute Source Code Form that is Incompatible With -Secondary Licenses under the terms of this version of the License, the -notice described in Exhibit B of this License must be attached. - -Exhibit A - Source Code Form License Notice -------------------------------------------- - - This Source Code Form is subject to the terms of the Mozilla Public - License, v. 2.0. If a copy of the MPL was not distributed with this - file, You can obtain one at http://mozilla.org/MPL/2.0/. - -If it is not possible or desirable to put the notice in a particular -file, then You may include the notice in a location (such as a LICENSE -file in a relevant directory) where a recipient would be likely to look -for such a notice. - -You may add additional accurate notices of copyright ownership. - -Exhibit B - "Incompatible With Secondary Licenses" Notice ---------------------------------------------------------- - - This Source Code Form is "Incompatible With Secondary Licenses", as - defined by the Mozilla Public License, v. 2.0. diff --git a/README.md b/README.md index f2388af..704147d 100644 --- a/README.md +++ b/README.md @@ -1,14 +1,3 @@ -TeleIRC SIG -=========== +This repository has been migrated to https://forge.fedoraproject.org/docs-archive/teleirc. -The TeleIRC SIG is a volunteer-driven group to manage [TeleIRC](https://github.com/RITlug/teleirc) bridge bots. -They connect Fedora IRC channels to [Telegram](https://telegram.org/) groups. -The bridges make project discussion more accessible to others, if IRC is not a convenient option for them. - -To learn more about this SIG, see our [documentation](https://docs.fedoraproject.org/en-US/teleirc-sig/). - - -## Contributing - -* **For sysadmin**: See [_Get involved_](https://docs.fedoraproject.org/en-US/teleirc-sig/get-involved/) -* **For documentation**: See [CONTRIBUTING.md](https://pagure.io/sig-teleirc/infrastructure/blob/master/f/.pagure/CONTRIBUTING.md) +It has also been archived due to the contents being out of date. If you'd like to revive this documentation, come talk to us on Matrix: https://matrix.to/#/#docs:fedoraproject.org. diff --git a/Vagrantfile b/Vagrantfile deleted file mode 100644 index 57663b2..0000000 --- a/Vagrantfile +++ /dev/null @@ -1,15 +0,0 @@ -# -*- mode: ruby -*- -# vi: set ft=ruby : - -Vagrant.configure("2") do |config| - config.vm.box = "fedora/29-cloud-base" - config.vm.provider :libvirt do |libvirt| - libvirt.memory = 4096 - end - # Provisioning configuration for Ansible. - config.vm.provision :ansible do |ansible| - ansible.compatibility_mode = "2.0" - ansible.extra_vars = { ansible_python_interpreter:"/usr/bin/python3" } - ansible.playbook = "playbooks/vagrant-test.yml" - end -end diff --git a/ansible.cfg b/ansible.cfg deleted file mode 100644 index ec22cfb..0000000 --- a/ansible.cfg +++ /dev/null @@ -1,4 +0,0 @@ -[defaults] -inventory = inventory/inventory -roles_path = roles/ -vault_password_file = ~/.config/ansible/teleirc_ansible_vault_pass diff --git a/build.sh b/build.sh deleted file mode 100755 index 1e4db2d..0000000 --- a/build.sh +++ /dev/null @@ -1,46 +0,0 @@ -#!/bin/sh - -image="docker.io/antora/antora" -cmd="--html-url-extension-style=indexify site.yml" - -if [ "$(uname)" == "Darwin" ]; then - # Running on macOS. - # Let's assume that the user has the Docker CE installed - # which doesn't require a root password. - echo "" - echo "This build script is using Docker container runtime to run the build in an isolated environment." - echo "" - docker run --rm -it -v $(pwd):/antora $image $cmd - -elif [ "$(expr substr $(uname -s) 1 5)" == "Linux" ]; then - # Running on Linux. - # Check whether podman is available, else faill back to docker - # which requires root. - - if [ -f /usr/bin/podman ]; then - echo "" - echo "This build script is using Podman to run the build in an isolated environment." - echo "" - podman run --rm -it -v $(pwd):/antora:z $image $cmd - - elif [ -f /usr/bin/docker ]; then - echo "" - echo "This build script is using Docker to run the build in an isolated environment." - echo "" - - if groups | grep -wq "docker"; then - docker run --rm -it -v $(pwd):/antora:z $image $cmd - else - echo "" - echo "This build script is using $runtime to run the build in an isolated environment. You might be asked for your password." - echo "You can avoid this by adding your user to the 'docker' group, but be aware of the security implications. See https://docs.docker.com/install/linux/linux-postinstall/." - echo "" - sudo docker run --rm -it -v $(pwd):/antora:z $image $cmd - fi - else - echo "" - echo "Error: Container runtime haven't been found on your system. Fix it by:" - echo "$ sudo dnf install podman" - exit 1 - fi -fi diff --git a/docs/README.md b/docs/README.md deleted file mode 100644 index 47cd4c1..0000000 --- a/docs/README.md +++ /dev/null @@ -1,121 +0,0 @@ -# Fedora Docs Template - -This repository contains a minimal source structure for a new Fedora Docs source. - -## Structure - -``` -|-- README.md -|-- antora.yml ....................... 1. -|-- build.sh ......................... 2. -|-- preview.sh ....................... 3. -|-- site.yml ......................... 4. -`-- modules - `-- ROOT ......................... 5. - |-- assets - | `-- images ............... 6. - | `-- pizza.png - |-- nav.adoc ................. 7. - `-- pages .................... 8. - |-- architecture.adoc - |-- community.adoc - |-- faq.adoc - |-- index.adoc - |-- pizza-dough.adoc - `-- pizza-owen.adoc -``` - -1. Metadata definition. -2. A script that does a local build. Uses docker. -3. A script that shows a preview of the site in a web browser by running a local web server. Uses docker. -4. A definition file for the build script. -5. A "root module of this documentation component". Please read below for an explanation. -6. **Images** to be used on any page. -7. **Menu definition.** Also defines the hierarchy of all the pages. -8. **Pages with the actual content.** They can be also organised into subdirectories if desired. - -## Components and Modules - -Antora introduces two new terms: - -* **Component** — Simply put, a component is a part of the documentation website with its own menu. Components can also be versioned. In the Fedora Docs, we use separate components for user documentation, the Fedora Poject, Fedora council, Mindshare, FESCO, but also subprojects such as CommOps or Modulartity. -* **Module** — A component can be broken down into multiple modules. Modules still share a single menu on the site, but their sources can be stored in different git repositories, even owned by different groups. The default module is called "ROOT" (that's what is in this example). If you don't want to use multiple modules, only use "ROOT". But to define more modules, simply duplicate the "ROOT" directory and name it anything you want. You can store modules in one or more git repositories. - -## Local preview - -This repo includes scripts to build and preview the contents of this repository. - -**NOTE**: Please note that if you reference pages from other repositoreis, such links will be broken in this local preview as it only builds this repository. If you want to rebuild the whole Fedora Docs site, please see [the Fedora Docs build repository](https://pagure.io/fedora-docs/docs-fp-o/) for instructions. - -Both scripts work on Fedora (using Podman) and macOS (using Docker). - -To build and preview the site, run: - -``` -$ ./build.sh && ./preview.sh -``` - -The result will be available at http://localhost:8080 - -### Installing Podman on Fedora - -Fedora Workstation doesn't come with Podman preinstalled by default — so you might need to install it using the following command: - -``` -$ sudo dnf install podman -``` - -### Preview as a part of the whole Fedora Docs site - -You can also build the whole Fedora Docs site locally to see your changes in the whole context. -This is especially useful for checking if your `xref` links work properly. - -To do this, you need to clone the main [Fedora Docs build repository](https://pagure.io/fedora-docs/docs-fp-o), modify the `site.yml` file to reference a repo with your changes, and build it. -Steps: - -Clone the main repository and cd into it: - -``` -$ git clone https://pagure.io/fedora-docs/docs-fp-o.git -$ cd docs-fp-o -``` - -Find a reference to the repository you're changing in the `site.yml` file, and change it so it points to your change. -So for example, if I made a modification to the Modularity docs, I would find: - -``` -... - - url: https://pagure.io/fedora-docs/modularity.git - branches: - - master -... -``` - -And replaced it with a pointer to my fork: -``` -... - - url: https://pagure.io/forks/asamalik/fedora-docs/modularity.git - branches: - - master -... -``` - -I could also point to a local repository, using `HEAD` as a branch to preview the what's changed without the need of making a commit. - -**Note:** I would need to move the repository under the `docs-fp-o` directory, because the builder won't see anything above. -So I would need to create a `repositories` directory in `docs-fp-o` and copy my repository into it. - -``` -... - - url: ./repositories/modularity - branches: - - HEAD -... -``` - -To build the whole site, I would run the following in the `docs-fp-o` directory. - -``` -$ ./build.sh && ./preview.sh -``` - diff --git a/docs/antora.yml b/docs/antora.yml deleted file mode 100644 index d0cbae3..0000000 --- a/docs/antora.yml +++ /dev/null @@ -1,16 +0,0 @@ -# Name will be mostly visible in the URL. Treat it as an indentifier. -# Tip: If you want to use the local preview scripts that come with this repository, please change this value in the site.yml file as well. (under site/start_page) -name: teleirc-sig - -# Title will be visible on the page. -title: Fedora TeleIRC SIG - -# If you don't plan to have multiple versions of the docs (for example, to document multiple versions of some software), you can ignore this field. Otherwise, change "master" to a specific version. -version: master - -# We encourage you to name the index page as "index.adoc". If you absolutely have to use a different name, please reflect it here. You can ignore this field otherwise. -start_page: ROOT:index - -# This lists all the menu definitions of your component. -nav: -- modules/ROOT/nav.adoc diff --git a/docs/modules/ROOT/nav.adoc b/docs/modules/ROOT/nav.adoc deleted file mode 100644 index 7491f7f..0000000 --- a/docs/modules/ROOT/nav.adoc +++ /dev/null @@ -1,6 +0,0 @@ -* For the public: -** xref:for-against-teleirc.adoc[Advantages and disadvantages] -** xref:request-new-bot.adoc[Request new bridge] -* For SIG members: -** xref:create-new-bot.adoc[Create new bridge] -** xref:get-involved.adoc[Get involved] diff --git a/docs/modules/ROOT/pages/_partials/attributes.adoc b/docs/modules/ROOT/pages/_partials/attributes.adoc deleted file mode 100644 index ae23245..0000000 --- a/docs/modules/ROOT/pages/_partials/attributes.adoc +++ /dev/null @@ -1,3 +0,0 @@ -:FWIKI: https://fedoraproject.org/wiki -:TELEIRC: https://github.com/RITlug/teleirc[TeleIRC] -:YEAR: 2019 diff --git a/docs/modules/ROOT/pages/create-new-bot.adoc b/docs/modules/ROOT/pages/create-new-bot.adoc deleted file mode 100644 index eddda96..0000000 --- a/docs/modules/ROOT/pages/create-new-bot.adoc +++ /dev/null @@ -1,115 +0,0 @@ -include::{partialsdir}/attributes.adoc[] - -= Create a new TeleIRC bridge - -This guide explains how to create a new TeleIRC bridge. -It explains updating the Ansible project, opening a pull request, and pushing changes to production. - - -== Acquire Vault passphrase - -_For SIG members only._ - -Telegram secrets (e.g. API tokens and chat IDs) are stored in an encrypted file. -A passphrase is required to decrypt the https://docs.ansible.com/ansible/latest/user_guide/vault.html[Ansible Vault] file with the Telegram secrets. - -Set up Ansible Vault on your workstation with these steps: - -. Install Ansible: `sudo dnf install ansible` -. Request Ansible Vault passphrase from SIG sponsor footnote:[The passphrase is sent via GPG-encrypted email or a Telegram https://telegram.org/faq#secret-chats[Secret Chat]. Find out who is a sponsor by checking https://admin.fedoraproject.org/accounts/group/members/sysadmin-teleirc/[this list].]. -. Insert plain-text passphrase in this file: `~/.config/ansible/teleirc_ansible_vault_pass` -. Change file permissions to prevent unauthorized access: (`chmod 600 ~/.config/ansible/teleirc_ansible_vault_pass`) -. Open secrets file: `ansible-vault edit roles/jwflory.teleirc/vars/vault.yml` footnote:[You must be in the root directory of the project, with `ansible.cfg`, for Ansible Vault to work automatically.] - - -== Add self to authorized_users - -_For SIG members only._ - -Add your system user on the TeleIRC host machine to the TeleIRC admin group. -Authorized users are listed at `roles/jwflory.teleirc/vars/main.yml`. -Add a new line to the list with your FAS username to grant access. - -If you cannot log in with your FAS footnote:[FAS: Fedora Account System] account, contact a sponsor for help. - - -== Add new bot in main.yml variable file - -Add a new bot by adding a section to `roles/jwflory.teleirc/vars/main.yml`. -Bots are sorted alphabetically. -Please preserve this sort order. - -Use the following excerpt as a template for a new bot: - ----- -bots: - fedora_TEAMNAME: // <1> - cn: "fedora-TEAMNAME" // <2> - irc_blacklist: "" // <3> - irc_bot_name: fzh-tg - irc_channel: "#fedora-zh" - irc_server: "{{ default_irc_server }}" // <4> - irc_nickserv_service: "{{ default_irc_nickserv_service }}" - irc_nickserv_password: "{{ vault_bots.fedora_TEAMNAME.vault_irc_nickserv_password }}" - teleirc_token: "{{ vault_bots.fedora_TEAMNAME.vault_teleirc_token }}" - teleirc_chat_id: "{{ vault_bots.fedora_TEAMNAME.vault_teleirc_chat_id }}" - imgur_client_id: "{{ default_imgur_client_id }}" - version: "{{ default_version }}" ----- -<1> Change TEAMNAME to a _lower-case_ team, SIG, or sub-project name -<2> "cn" means common name. Used for directories and systemd unit files. -<3> Ignore specific IRC nicks. Messages from these nicks will not go to Telegram (helpful for fedmsg bots). -<4> Defaults to Freenode. Defaults placed at top of `roles/jwflory.teleirc/vars/main.yml`. - - -== Add new bot secrets in vault.yml variable file - -_For SIG members only._ - -Finally, add Telegram secrets to finish configuration. -The requesting person is instructed to provide the Telegram secrets. -SIG members are _not_ expected to create the Telegram bot unless absolutely necessary. - -Edit the secrets file from the root directory of the repo: - - ansible-vault edit roles/jwflory.teleirc/vars/vault.yml - -Add provided Telegram secrets in the following format. -Note this list is also sorted alphabetically: - ----- -vault_bots: - fedora_TEAMNAME: - vault_irc_nickserv_password: "" // <1> - vault_teleirc_token: "00000:0000000000" // <2> - vault_teleirc_chat_id: "-000000000" // <3> ----- -<1> NickServ account password. Not currently used. -<2> API token from a Telegram bot. Provided by requestee. -<3> Chat ID of a specific Telegram group. Provided by requestee. See how to get the chat ID https://stackoverflow.com/a/32572159[here]. - - -== Open pull request - -Verify your changes are correct. -Open a pull request and request peer review on your pull request. -Request review by asking in the Fedora CommOps channel / group. - - -== Push changes via playbook - -_For SIG members only._ - -*Once your pull request is reviewed*, push changes to production with the Ansible playbook: - - ansible-playbook -K playbooks/telegram-irc.yml - -The `-K` flag prompts for a sudo password on the host. -If authorized, this is likely your FAS password. - -Once the playbook finishes, the bot is deployed. -It automatically starts at the end of the playbook run. -Test both sides of the bridge are operational. - -Congrats! -You're done! diff --git a/docs/modules/ROOT/pages/for-against-teleirc.adoc b/docs/modules/ROOT/pages/for-against-teleirc.adoc deleted file mode 100644 index c27146e..0000000 --- a/docs/modules/ROOT/pages/for-against-teleirc.adoc +++ /dev/null @@ -1,23 +0,0 @@ -include::{partialsdir}/attributes.adoc[] - -= Advantages and disadvantages to TeleIRC bridges - -Are you considering a {TELEIRC} bridge? -This page attempts a neutral view on pros/cons to using a TeleIRC bridge for your sub-project, team, or SIG. - - -== Advantages - -* *More accessible discussion*: Supporting another client than IRC allows more people to participate and engage with a team based on their personal preference -* *Easier participation from mobile*: Open source Telegram mobile clients allows easier participation from mobile devices -* *Lower barrier of entry*: Less options and complexities from Telegram clients than traditional IRC clients -* *Guaranteed delivery*: Easy to verify a message is actually sent – no netsplits or packet losses to prevent messages from being sent -* *Threaded conversations*: Replying to past messages simplifies discussion spanning long periods of time (e.g. someone catches up on past conversation) - - -== Disadvantages - -* *Multiple moderators required*: Active moderation is needed both on IRC and Telegram – not possible to mirror between IRC and Telegram -* *Telegram's server code is proprietary*: Server code is not free software and there are no plans to release it under free software licenses -* *Chatting across bridges is not perfect*: Sometimes context may be missing for IRC users if Telegram users reply to old messages -* *No Fedora IRC bot support*: No Telegram-to-IRC support for Fedora's bots, like zodbot (but bot messages will carry from IRC to Telegram) diff --git a/docs/modules/ROOT/pages/get-involved.adoc b/docs/modules/ROOT/pages/get-involved.adoc deleted file mode 100644 index b5b8c1a..0000000 --- a/docs/modules/ROOT/pages/get-involved.adoc +++ /dev/null @@ -1,17 +0,0 @@ -include::{partialsdir}/attributes.adoc[] - -= Get involved with TeleIRC SIG - -Want to help as a volunteer sysadmin for the TeleIRC SIG? -This page explains how to contribute and how to get involved. - - -== Help respond to new bridge requests - -Coming soon. - - -== Support upstream development - -Coming soon. - diff --git a/docs/modules/ROOT/pages/index.adoc b/docs/modules/ROOT/pages/index.adoc deleted file mode 100644 index 92bcd6b..0000000 --- a/docs/modules/ROOT/pages/index.adoc +++ /dev/null @@ -1,10 +0,0 @@ -include::{partialsdir}/attributes.adoc[] - -= TeleIRC SIG - -The TeleIRC SIG is a volunteer-driven group to manage {TELEIRC} bridge bots. -They connect Fedora IRC channels to https://telegram.org/[Telegram] groups. -The bridges make project discussion more accessible to others, if IRC is not a convenient option for them. - -To learn more about this SIG, see other pages in the sidebar navigation. - diff --git a/docs/modules/ROOT/pages/request-new-bot.adoc b/docs/modules/ROOT/pages/request-new-bot.adoc deleted file mode 100644 index d53c3c2..0000000 --- a/docs/modules/ROOT/pages/request-new-bot.adoc +++ /dev/null @@ -1,60 +0,0 @@ -include::{partialsdir}/attributes.adoc[] - -= Request a new TeleIRC bridge bot - -The TeleIRC SIG is responsible for "bridges" between IRC channels and Telegram groups. -Fedora community members may request new bridges to connect an IRC channel to a Telegram group. -If you are part of a larger sub-community, discuss bridging with your team _before_ making a request. - - -== Create a Telegram bot - -First, create a Telegram bot via the Telegram API account (BotFather). -The upstream project https://docs.teleirc.com/en/v1.3.4/quick-install/#create-a-telegram-bot[provides documentation] on how to do this. - -Follow all instructions for the bot to work as expected (note the bot privacy setting). -The BotFather gives you a Telegram API token after creating the bot. -Later, you will provide this token to the TeleIRC SIG. - -_Note_: Whoever creates the Telegram bot is the only person able to make configuration changes to the bot. -It is not yet possible to "share" Telegram bots with other users. - - -== Use bot to get Telegram chat ID - -Add the bot to the Telegram group you want to bridge to IRC. -Once the bot is added, use the Telegram API to retrieve the chat ID of the Telegram group. -The chat ID is a unique number specific to your Telegram group. - -Instructions on how to retrieve a Telegram chat ID are found on https://stackoverflow.com/a/32572159[StackOverflow]. - - -== Open public ticket with request - -Next, open a https://pagure.io/sig-teleirc/infrastructure/new_issue[new issue] on the TeleIRC SIG _infrastructure_ repository. -In your ticket, include the following information: - -* Team / sub-project name -* IRC channel to bridge to Telegram -* IRC nicks to ignore on Telegram (e.g. fedmsg bots, if your channel has noisy fedmsg bots) - - -== Send Telegram secrets via email - -Finally, send the Telegram secrets in an email to the TeleIRC SIG. -Include the following in your email: - -* Telegram API token -* Telegram group chat ID - -Send these to the following address: - - sysadmin-teleirc-members [at] fedoraproject [dot] org - -Updates are posted in the public ticket. -The ticket will be closed when the bot is created. - - -== Questions? - -If you have questions or need additional assistance, ask in the xref:commops::index.adoc[Fedora CommOps] IRC channel / group. diff --git a/docs/nginx.conf b/docs/nginx.conf deleted file mode 100644 index f7093b3..0000000 --- a/docs/nginx.conf +++ /dev/null @@ -1,14 +0,0 @@ -server { - listen 80; - server_name localhost; - - location / { - root /antora/public; - index index.html index.htm; - } - - error_page 500 502 503 504 /50x.html; - location = /50x.html { - root /usr/share/nginx/html; - } -} diff --git a/inventory/inventory b/inventory/inventory deleted file mode 100644 index 23acd90..0000000 --- a/inventory/inventory +++ /dev/null @@ -1,5 +0,0 @@ -# Temporary host on RITlug infrastructure -129.21.39.107 ansible_python_interpreter=/usr/bin/python3 - -[dev] -127.0.0.1 ansible_connection=local diff --git a/playbooks/telegram-irc.yml b/playbooks/telegram-irc.yml deleted file mode 100644 index 856dbd0..0000000 --- a/playbooks/telegram-irc.yml +++ /dev/null @@ -1,8 +0,0 @@ ---- -- name: synchronize TeleIRC host - hosts: 129.21.39.107 - become: yes - - roles: - - { role: firewalld, tags: firewalld } - - { role: jwflory.teleirc, tags: teleirc } diff --git a/preview.sh b/preview.sh deleted file mode 100755 index acc52af..0000000 --- a/preview.sh +++ /dev/null @@ -1,18 +0,0 @@ -#!/bin/sh - -if [ "$(uname)" == "Darwin" ]; then - # Running on macOS. - # Let's assume that the user has the Docker CE installed - # which doesn't require a root password. - echo "The preview will be available at http://localhost:8080/" - docker run --rm -v $(pwd):/antora:ro -v $(pwd)/nginx.conf:/etc/nginx/conf.d/default.conf:ro -p 8080:80 nginx - -elif [ "$(expr substr $(uname -s) 1 5)" == "Linux" ]; then - # Running on Linux. - # Fedora Workstation has python3 installed as a default, so using that - echo "" - echo "The preview is available at http://localhost:8080" - echo "" - cd ./public - python3 -m http.server 8080 -fi diff --git a/roles/firewalld/tasks/main.yml b/roles/firewalld/tasks/main.yml deleted file mode 100644 index e523c67..0000000 --- a/roles/firewalld/tasks/main.yml +++ /dev/null @@ -1,14 +0,0 @@ ---- -- name: install/upgrade firewalld and fail2ban - package: - state: latest - name: - - fail2ban - - fail2ban-firewalld - - firewalld - -- name: start/enable firewalld - service: - name: firewalld - state: started - enabled: yes diff --git a/roles/jwflory.teleirc/LICENSE.txt b/roles/jwflory.teleirc/LICENSE.txt deleted file mode 100644 index a612ad9..0000000 --- a/roles/jwflory.teleirc/LICENSE.txt +++ /dev/null @@ -1,373 +0,0 @@ -Mozilla Public License Version 2.0 -================================== - -1. Definitions --------------- - -1.1. "Contributor" - means each individual or legal entity that creates, contributes to - the creation of, or owns Covered Software. - -1.2. "Contributor Version" - means the combination of the Contributions of others (if any) used - by a Contributor and that particular Contributor's Contribution. - -1.3. "Contribution" - means Covered Software of a particular Contributor. - -1.4. "Covered Software" - means Source Code Form to which the initial Contributor has attached - the notice in Exhibit A, the Executable Form of such Source Code - Form, and Modifications of such Source Code Form, in each case - including portions thereof. - -1.5. "Incompatible With Secondary Licenses" - means - - (a) that the initial Contributor has attached the notice described - in Exhibit B to the Covered Software; or - - (b) that the Covered Software was made available under the terms of - version 1.1 or earlier of the License, but not also under the - terms of a Secondary License. - -1.6. "Executable Form" - means any form of the work other than Source Code Form. - -1.7. "Larger Work" - means a work that combines Covered Software with other material, in - a separate file or files, that is not Covered Software. - -1.8. "License" - means this document. - -1.9. "Licensable" - means having the right to grant, to the maximum extent possible, - whether at the time of the initial grant or subsequently, any and - all of the rights conveyed by this License. - -1.10. "Modifications" - means any of the following: - - (a) any file in Source Code Form that results from an addition to, - deletion from, or modification of the contents of Covered - Software; or - - (b) any new file in Source Code Form that contains any Covered - Software. - -1.11. "Patent Claims" of a Contributor - means any patent claim(s), including without limitation, method, - process, and apparatus claims, in any patent Licensable by such - Contributor that would be infringed, but for the grant of the - License, by the making, using, selling, offering for sale, having - made, import, or transfer of either its Contributions or its - Contributor Version. - -1.12. "Secondary License" - means either the GNU General Public License, Version 2.0, the GNU - Lesser General Public License, Version 2.1, the GNU Affero General - Public License, Version 3.0, or any later versions of those - licenses. - -1.13. "Source Code Form" - means the form of the work preferred for making modifications. - -1.14. "You" (or "Your") - means an individual or a legal entity exercising rights under this - License. For legal entities, "You" includes any entity that - controls, is controlled by, or is under common control with You. For - purposes of this definition, "control" means (a) the power, direct - or indirect, to cause the direction or management of such entity, - whether by contract or otherwise, or (b) ownership of more than - fifty percent (50%) of the outstanding shares or beneficial - ownership of such entity. - -2. License Grants and Conditions --------------------------------- - -2.1. Grants - -Each Contributor hereby grants You a world-wide, royalty-free, -non-exclusive license: - -(a) under intellectual property rights (other than patent or trademark) - Licensable by such Contributor to use, reproduce, make available, - modify, display, perform, distribute, and otherwise exploit its - Contributions, either on an unmodified basis, with Modifications, or - as part of a Larger Work; and - -(b) under Patent Claims of such Contributor to make, use, sell, offer - for sale, have made, import, and otherwise transfer either its - Contributions or its Contributor Version. - -2.2. Effective Date - -The licenses granted in Section 2.1 with respect to any Contribution -become effective for each Contribution on the date the Contributor first -distributes such Contribution. - -2.3. Limitations on Grant Scope - -The licenses granted in this Section 2 are the only rights granted under -this License. No additional rights or licenses will be implied from the -distribution or licensing of Covered Software under this License. -Notwithstanding Section 2.1(b) above, no patent license is granted by a -Contributor: - -(a) for any code that a Contributor has removed from Covered Software; - or - -(b) for infringements caused by: (i) Your and any other third party's - modifications of Covered Software, or (ii) the combination of its - Contributions with other software (except as part of its Contributor - Version); or - -(c) under Patent Claims infringed by Covered Software in the absence of - its Contributions. - -This License does not grant any rights in the trademarks, service marks, -or logos of any Contributor (except as may be necessary to comply with -the notice requirements in Section 3.4). - -2.4. Subsequent Licenses - -No Contributor makes additional grants as a result of Your choice to -distribute the Covered Software under a subsequent version of this -License (see Section 10.2) or under the terms of a Secondary License (if -permitted under the terms of Section 3.3). - -2.5. Representation - -Each Contributor represents that the Contributor believes its -Contributions are its original creation(s) or it has sufficient rights -to grant the rights to its Contributions conveyed by this License. - -2.6. Fair Use - -This License is not intended to limit any rights You have under -applicable copyright doctrines of fair use, fair dealing, or other -equivalents. - -2.7. Conditions - -Sections 3.1, 3.2, 3.3, and 3.4 are conditions of the licenses granted -in Section 2.1. - -3. Responsibilities -------------------- - -3.1. Distribution of Source Form - -All distribution of Covered Software in Source Code Form, including any -Modifications that You create or to which You contribute, must be under -the terms of this License. You must inform recipients that the Source -Code Form of the Covered Software is governed by the terms of this -License, and how they can obtain a copy of this License. You may not -attempt to alter or restrict the recipients' rights in the Source Code -Form. - -3.2. Distribution of Executable Form - -If You distribute Covered Software in Executable Form then: - -(a) such Covered Software must also be made available in Source Code - Form, as described in Section 3.1, and You must inform recipients of - the Executable Form how they can obtain a copy of such Source Code - Form by reasonable means in a timely manner, at a charge no more - than the cost of distribution to the recipient; and - -(b) You may distribute such Executable Form under the terms of this - License, or sublicense it under different terms, provided that the - license for the Executable Form does not attempt to limit or alter - the recipients' rights in the Source Code Form under this License. - -3.3. Distribution of a Larger Work - -You may create and distribute a Larger Work under terms of Your choice, -provided that You also comply with the requirements of this License for -the Covered Software. If the Larger Work is a combination of Covered -Software with a work governed by one or more Secondary Licenses, and the -Covered Software is not Incompatible With Secondary Licenses, this -License permits You to additionally distribute such Covered Software -under the terms of such Secondary License(s), so that the recipient of -the Larger Work may, at their option, further distribute the Covered -Software under the terms of either this License or such Secondary -License(s). - -3.4. Notices - -You may not remove or alter the substance of any license notices -(including copyright notices, patent notices, disclaimers of warranty, -or limitations of liability) contained within the Source Code Form of -the Covered Software, except that You may alter any license notices to -the extent required to remedy known factual inaccuracies. - -3.5. Application of Additional Terms - -You may choose to offer, and to charge a fee for, warranty, support, -indemnity or liability obligations to one or more recipients of Covered -Software. However, You may do so only on Your own behalf, and not on -behalf of any Contributor. You must make it absolutely clear that any -such warranty, support, indemnity, or liability obligation is offered by -You alone, and You hereby agree to indemnify every Contributor for any -liability incurred by such Contributor as a result of warranty, support, -indemnity or liability terms You offer. You may include additional -disclaimers of warranty and limitations of liability specific to any -jurisdiction. - -4. Inability to Comply Due to Statute or Regulation ---------------------------------------------------- - -If it is impossible for You to comply with any of the terms of this -License with respect to some or all of the Covered Software due to -statute, judicial order, or regulation then You must: (a) comply with -the terms of this License to the maximum extent possible; and (b) -describe the limitations and the code they affect. Such description must -be placed in a text file included with all distributions of the Covered -Software under this License. Except to the extent prohibited by statute -or regulation, such description must be sufficiently detailed for a -recipient of ordinary skill to be able to understand it. - -5. Termination --------------- - -5.1. The rights granted under this License will terminate automatically -if You fail to comply with any of its terms. However, if You become -compliant, then the rights granted under this License from a particular -Contributor are reinstated (a) provisionally, unless and until such -Contributor explicitly and finally terminates Your grants, and (b) on an -ongoing basis, if such Contributor fails to notify You of the -non-compliance by some reasonable means prior to 60 days after You have -come back into compliance. Moreover, Your grants from a particular -Contributor are reinstated on an ongoing basis if such Contributor -notifies You of the non-compliance by some reasonable means, this is the -first time You have received notice of non-compliance with this License -from such Contributor, and You become compliant prior to 30 days after -Your receipt of the notice. - -5.2. If You initiate litigation against any entity by asserting a patent -infringement claim (excluding declaratory judgment actions, -counter-claims, and cross-claims) alleging that a Contributor Version -directly or indirectly infringes any patent, then the rights granted to -You by any and all Contributors for the Covered Software under Section -2.1 of this License shall terminate. - -5.3. In the event of termination under Sections 5.1 or 5.2 above, all -end user license agreements (excluding distributors and resellers) which -have been validly granted by You or Your distributors under this License -prior to termination shall survive termination. - -************************************************************************ -* * -* 6. Disclaimer of Warranty * -* ------------------------- * -* * -* Covered Software is provided under this License on an "as is" * -* basis, without warranty of any kind, either expressed, implied, or * -* statutory, including, without limitation, warranties that the * -* Covered Software is free of defects, merchantable, fit for a * -* particular purpose or non-infringing. The entire risk as to the * -* quality and performance of the Covered Software is with You. * -* Should any Covered Software prove defective in any respect, You * -* (not any Contributor) assume the cost of any necessary servicing, * -* repair, or correction. This disclaimer of warranty constitutes an * -* essential part of this License. No use of any Covered Software is * -* authorized under this License except under this disclaimer. * -* * -************************************************************************ - -************************************************************************ -* * -* 7. Limitation of Liability * -* -------------------------- * -* * -* Under no circumstances and under no legal theory, whether tort * -* (including negligence), contract, or otherwise, shall any * -* Contributor, or anyone who distributes Covered Software as * -* permitted above, be liable to You for any direct, indirect, * -* special, incidental, or consequential damages of any character * -* including, without limitation, damages for lost profits, loss of * -* goodwill, work stoppage, computer failure or malfunction, or any * -* and all other commercial damages or losses, even if such party * -* shall have been informed of the possibility of such damages. This * -* limitation of liability shall not apply to liability for death or * -* personal injury resulting from such party's negligence to the * -* extent applicable law prohibits such limitation. Some * -* jurisdictions do not allow the exclusion or limitation of * -* incidental or consequential damages, so this exclusion and * -* limitation may not apply to You. * -* * -************************************************************************ - -8. Litigation -------------- - -Any litigation relating to this License may be brought only in the -courts of a jurisdiction where the defendant maintains its principal -place of business and such litigation shall be governed by laws of that -jurisdiction, without reference to its conflict-of-law provisions. -Nothing in this Section shall prevent a party's ability to bring -cross-claims or counter-claims. - -9. Miscellaneous ----------------- - -This License represents the complete agreement concerning the subject -matter hereof. If any provision of this License is held to be -unenforceable, such provision shall be reformed only to the extent -necessary to make it enforceable. Any law or regulation which provides -that the language of a contract shall be construed against the drafter -shall not be used to construe this License against a Contributor. - -10. Versions of the License ---------------------------- - -10.1. New Versions - -Mozilla Foundation is the license steward. Except as provided in Section -10.3, no one other than the license steward has the right to modify or -publish new versions of this License. Each version will be given a -distinguishing version number. - -10.2. Effect of New Versions - -You may distribute the Covered Software under the terms of the version -of the License under which You originally received the Covered Software, -or under the terms of any subsequent version published by the license -steward. - -10.3. Modified Versions - -If you create software not governed by this License, and you want to -create a new license for such software, you may create and use a -modified version of this License if you rename the license and remove -any references to the name of the license steward (except to note that -such modified license differs from this License). - -10.4. Distributing Source Code Form that is Incompatible With Secondary -Licenses - -If You choose to distribute Source Code Form that is Incompatible With -Secondary Licenses under the terms of this version of the License, the -notice described in Exhibit B of this License must be attached. - -Exhibit A - Source Code Form License Notice -------------------------------------------- - - This Source Code Form is subject to the terms of the Mozilla Public - License, v. 2.0. If a copy of the MPL was not distributed with this - file, You can obtain one at http://mozilla.org/MPL/2.0/. - -If it is not possible or desirable to put the notice in a particular -file, then You may include the notice in a location (such as a LICENSE -file in a relevant directory) where a recipient would be likely to look -for such a notice. - -You may add additional accurate notices of copyright ownership. - -Exhibit B - "Incompatible With Secondary Licenses" Notice ---------------------------------------------------------- - - This Source Code Form is "Incompatible With Secondary Licenses", as - defined by the Mozilla Public License, v. 2.0. diff --git a/roles/jwflory.teleirc/README.md b/roles/jwflory.teleirc/README.md deleted file mode 100644 index ba2cbc0..0000000 --- a/roles/jwflory.teleirc/README.md +++ /dev/null @@ -1,114 +0,0 @@ -Ansible Role: teleirc -===================== - -Deploy RITlug/teleirc chat bots to bridge IRC channels and Telegram groups - - -## Requirements - -No special requirements. -Note this role requires root access; either run it in a playbook with a global `become: yes` or invoke the role in your playbook: - -```yaml -- hosts: servers - roles: - - role: jwflory.teleirc - become: yes -``` - - -## Role Variables - -Available variables are listed below, along with default values (see `defaults/main.yml`): - -### `defaults/main.yml` - -```yaml -default_irc_server: chat.freenode.net -default_irc_nickserv_service: NickServ -default_version: v1.2.2 -``` - -* **`default_irc_server`**: Default IRC server to connect to (defaults to Freenode) -* **`default_irc_nickserv_service`**: Default authentication service for IRC server (defaults to NickServ) -* **`default_version`**: Default version of TeleIRC to deploy (corresponds to git tag releases in upstream project) - -### `vars/main.yml` - -```yaml -bots: - my_example_bot: - cn: "my-example-bot" - irc_blacklist: "noisy-irc-bot,ci-build-alerts" - irc_bot_name: tg-my-example-bot - irc_channel: "#ritlug-teleirc-sandbox" - irc_server: "{{ default_irc_server }}" - irc_nickserv_service: "{{ default_irc_nickserv_service }}" - irc_nickserv_password: "{{ vault_bots.my_example_bot.vault_irc_nickserv_password }}" - teleirc_token: "{{ vault_bots.my_example_bot.vault_teleirc_token }}" - teleirc_chat_id: "{{ vault_bots.my_example_bot.vault_teleirc_chat_id }}" - imgur_client_id: "{{ vault_default_imgur_client_id }}" - version: "{{ default_version }}" -``` - -* **`bots`**: List of all bots -* **`bots.my_example_bot`**: Example of a single TeleIRC bot -* **`bots.my_example_bot.cn`**: Common name. Used for directory names, systemd service name, and more. -* **`bots.my_example_bot.irc_blacklist`**: Comma-separated string of IRC nicks to ignore -* **`bots.my_example_bot.irc_bot_name`**: IRC nick of TeleIRC bridge bot -* **`bots.my_example_bot.irc_channel`**: IRC channel for bot to join -* **`bots.my_example_bot.irc_server`**: IRC server for bot to connect to (uses `defaults/main.yml`) -* **`bots.my_example_bot.irc_nickserv_service`**: IRC account authentication method (uses `defaults/main.yml`) -* **`bots.my_example_bot.irc_nickserv_password`**: _See below_ -* **`bots.my_example_bot.teleirc_token`**: _See below_ -* **`bots.my_example_bot.teleirc_chat_id`**: _See below_ -* **`bots.my_example_bot.imgur_client_id`**: _See below_ -* **`bots.my_example_bot.version`**: What version of TeleIRC to deploy (uses `defaults/main.yml`) - -### `vars/vault.yml` - -```yaml -# encrypt this with Ansible Vault before committing! - -vault_default_imgur_client_id: "000000000000000" - -vault_bots: - my_example_bot: - vault_irc_nickserv_password: "" - vault_teleirc_token: "000000000:AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" - vault_teleirc_chat_id: "-0000000000000" -``` - -* **`default_imgur_client_id`**: Imgur API client ID to upload images from Telegram to Imgur -* **`vault_bots`**: List of all bots -* **`vault_bots.my_example_bot`**: Example of secrets for a single TeleIRC bot -* **`vault_bots.my_example_bot.vault_irc_nickserv_password`**: Password to NickServ account on IRC server -* **`vault_bots.my_example_bot.vault_teleirc_token`**: Telegram API bot token provided by the BotFather -* **`vault_bots.my_example_bot.vault_teleirc_chat_id`**: Telegram chat ID of group for bridging to IRC - - -## Dependencies - -None. - - -## Example Playbook - -```yaml -- hosts: servers - roles: - - role: jwflory.teleirc -``` - -## License - -[Mozilla Public License 2.0](https://www.mozilla.org/en-US/MPL/ "Mozilla Public License – Mozilla") - -Author(s) accept changes made to `vars/` to be omitted in published derivative work, as these are understood to be deployment-specific. -Modifications to other aspects of the Ansible Role that others could benefit from are expected to be open. - - -## Author Information - -This role was created in 2018 by [Justin W. Flory](https://justinwflory.com/). -Find him on [GitHub](https://github.com/jwflory "Check out other things I'm working on!") and [LinkedIn](https://www.linkedin.com/in/justinwflory/ "See what I'm doing out in the world…"). diff --git a/roles/jwflory.teleirc/defaults/main.yml b/roles/jwflory.teleirc/defaults/main.yml deleted file mode 100644 index 4e424dd..0000000 --- a/roles/jwflory.teleirc/defaults/main.yml +++ /dev/null @@ -1,5 +0,0 @@ ---- -# defaults file for teleirc -default_irc_server: chat.freenode.net -default_irc_nickserv_service: NickServ -default_version: v1.2.2 diff --git a/roles/jwflory.teleirc/handlers/main.yml b/roles/jwflory.teleirc/handlers/main.yml deleted file mode 100644 index bfe1c82..0000000 --- a/roles/jwflory.teleirc/handlers/main.yml +++ /dev/null @@ -1,31 +0,0 @@ ---- -- name: install build dependencies - package: - state: present - name: - - gcc-c++ - - libicu-devel - - # Ignore errors because `yarn` sometimes produces non-fatal exit codes that - # Ansible interprets as a fatal exit code -- name: install runtime dependencies with yarn - become: yes - become_user: teleirc - command: "yarn" - args: - chdir: "/usr/lib64/teleirc/{{ item.value.cn }}/" - loop: "{{ bots|dict2items }}" - ignore_errors: yes - -- name: remove build dependencies - package: - state: absent - name: - - gcc-c++ - - libicu-devel - -- name: restart teleirc - service: - name: "teleirc-{{ item.value.cn }}.service" - state: restarted - loop: "{{ bots|dict2items }}" diff --git a/roles/jwflory.teleirc/meta/.galaxy_install_info b/roles/jwflory.teleirc/meta/.galaxy_install_info deleted file mode 100644 index adce2e5..0000000 --- a/roles/jwflory.teleirc/meta/.galaxy_install_info +++ /dev/null @@ -1,2 +0,0 @@ -install_date: Mon May 6 14:44:44 2019 -version: v1.0.2 diff --git a/roles/jwflory.teleirc/meta/main.yml b/roles/jwflory.teleirc/meta/main.yml deleted file mode 100644 index 7f50ed8..0000000 --- a/roles/jwflory.teleirc/meta/main.yml +++ /dev/null @@ -1,24 +0,0 @@ -galaxy_info: - role_name: teleirc - author: Justin W. Flory - description: Deploy RITlug/teleirc chat bots to bridge IRC channels and Telegram groups - - license: MPLv2 - - min_ansible_version: 2.7 - - platforms: - - name: EL - versions: - - 7 - - galaxy_tags: - - irc - - javascript - - nodejs - - rit - - ritlug - - rochester - - telegram - -dependencies: [] diff --git a/roles/jwflory.teleirc/tasks/dependencies.yml b/roles/jwflory.teleirc/tasks/dependencies.yml deleted file mode 100644 index 33056df..0000000 --- a/roles/jwflory.teleirc/tasks/dependencies.yml +++ /dev/null @@ -1,7 +0,0 @@ ---- -- name: install nodejs and yarn - package: - state: present - name: - - nodejs - - yarnpkg diff --git a/roles/jwflory.teleirc/tasks/imports.yml b/roles/jwflory.teleirc/tasks/imports.yml deleted file mode 100644 index a3e09da..0000000 --- a/roles/jwflory.teleirc/tasks/imports.yml +++ /dev/null @@ -1,3 +0,0 @@ ---- -- name: import Vault-encrypted variables with API tokens and Telegram chat IDs - include_vars: vault.yml diff --git a/roles/jwflory.teleirc/tasks/install.yml b/roles/jwflory.teleirc/tasks/install.yml deleted file mode 100644 index bfd1db4..0000000 --- a/roles/jwflory.teleirc/tasks/install.yml +++ /dev/null @@ -1,48 +0,0 @@ ---- -- name: git clone/pull RITlug/teleirc - git: - repo: "https://github.com/RITlug/teleirc.git" - dest: "/usr/lib64/teleirc/{{ item.value.cn }}" - version: "{{ item.value.version }}" - force: yes - loop: "{{ bots|dict2items }}" - notify: - - install build dependencies - - install runtime dependencies with yarn - - remove build dependencies - - restart teleirc - -- name: "set file permissions to teleirc:teleirc in /usr/lib64/teleirc/" - file: - state: directory - recurse: yes - path: "/usr/lib64/teleirc" - owner: teleirc - group: teleirc - -- name: add templated configuration - template: - src: env - dest: "/usr/lib64/teleirc/{{ item.value.cn }}/.env" - mode: 0640 - owner: teleirc - group: teleirc - seuser: system_u - loop: "{{ bots|dict2items }}" - notify: restart teleirc - -- name: add templated systemd unit file - template: - src: teleirc.service - dest: "/usr/lib/systemd/system/teleirc-{{ item.value.cn }}.service" - mode: 0644 - seuser: system_u - setype: systemd_unit_file_t - loop: "{{ bots|dict2items }}" - -- name: start/enable each TeleIRC systemd unit file - service: - name: teleirc-{{ item.value.cn }} - state: started - enabled: yes - loop: "{{ bots|dict2items }}" diff --git a/roles/jwflory.teleirc/tasks/main.yml b/roles/jwflory.teleirc/tasks/main.yml deleted file mode 100644 index 9756e69..0000000 --- a/roles/jwflory.teleirc/tasks/main.yml +++ /dev/null @@ -1,5 +0,0 @@ ---- -- include_tasks: imports.yml -- include_tasks: dependencies.yml -- include_tasks: user-management.yml -- include_tasks: install.yml diff --git a/roles/jwflory.teleirc/tasks/user-management.yml b/roles/jwflory.teleirc/tasks/user-management.yml deleted file mode 100644 index 8a8c545..0000000 --- a/roles/jwflory.teleirc/tasks/user-management.yml +++ /dev/null @@ -1,24 +0,0 @@ ---- -- name: create system user for TeleIRC bots - user: - name: teleirc - comment: "system user to run RITlug/teleirc bots - do not use" - system: yes - home: "/usr/lib64/teleirc" - create_home: no - -- name: add target user to TeleIRC admin group - user: - name: "{{ item }}" - groups: teleirc - append: yes - loop: "{{ authorized_users }}" - -- name: create root directory for TeleIRC bots - file: - state: directory - path: "/usr/lib64/teleirc" - mode: 0755 - owner: teleirc - group: teleirc - seuser: system_u diff --git a/roles/jwflory.teleirc/templates/env b/roles/jwflory.teleirc/templates/env deleted file mode 100644 index 10d3dc4..0000000 --- a/roles/jwflory.teleirc/templates/env +++ /dev/null @@ -1,60 +0,0 @@ -############################################################################### -# # -# THIS FILE IS MANAGED BY ANSIBLE! CHANGES ARE OVERWRITTEN. # -# https://github.com/jwflory/infrastructure # -# # -############################################################################### - -############################################################################### -# # -# IRC configuration settings # -# # -############################################################################### - -IRC_BLACKLIST="{{ item.value.irc_blacklist }}" -IRC_BOT_NAME={{ item.value.irc_bot_name }} -IRC_CHANNEL={{ item.value.irc_channel }} -IRC_SEND_STICKER_EMOJI=true -IRC_PREFIX="<" -IRC_SUFFIX=">" -IRC_SERVER={{ item.value.irc_server }} -IRC_NICKSERV_SERVICE={{ item.value.irc_nickserv_service }} -IRC_NICKSERV_PASS="{{ item.value.irc_nickserv_password }}" -IRC_EDITED_PREFIX="(edited) " - - -############################################################################### -# # -# Telegram configuration settings # -# # -############################################################################### - -TELEIRC_TOKEN={{ item.value.teleirc_token }} -MAX_MESSAGES_PER_MINUTE=20 -SHOW_ACTION_MESSAGE=true -SHOW_JOIN_MESSAGE=false -SHOW_KICK_MESSAGE=true -SHOW_LEAVE_MESSAGE=false -TELEGRAM_CHAT_ID={{ item.value.teleirc_chat_id }} - - -############################################################################### -# # -# Imgur configuration settings # -# # -############################################################################### - -USE_IMGUR_FOR_IMAGES=true -IMGUR_CLIENT_ID={{ item.value.imgur_client_id }} - - -############################################################################### -# # -# Misc. required env variables # -# -- not meant for user config, don't touch -- # -# # -############################################################################### - -# https://github.com/yagop/node-telegram-bot-api/issues/319#issuecomment-324963294 -NTBA_FIX_319=1 - diff --git a/roles/jwflory.teleirc/templates/teleirc.service b/roles/jwflory.teleirc/templates/teleirc.service deleted file mode 100644 index fa8bf12..0000000 --- a/roles/jwflory.teleirc/templates/teleirc.service +++ /dev/null @@ -1,15 +0,0 @@ -[Unit] -Description=TeleIRC: Telegram + IRC bridge bot (for: {{ item.value.cn }}) -Requires=network.target -After=multi-user.target - -[Service] -Type=simple -User=teleirc -WorkingDirectory=/usr/lib64/teleirc/{{ item.value.cn }} -ExecStart=/usr/bin/node teleirc.js -Restart=always -RestartSec=60 - -[Install] -WantedBy=multi-user.target diff --git a/roles/jwflory.teleirc/tests/inventory b/roles/jwflory.teleirc/tests/inventory deleted file mode 100644 index 878877b..0000000 --- a/roles/jwflory.teleirc/tests/inventory +++ /dev/null @@ -1,2 +0,0 @@ -localhost - diff --git a/roles/jwflory.teleirc/tests/test.yml b/roles/jwflory.teleirc/tests/test.yml deleted file mode 100644 index 74472fb..0000000 --- a/roles/jwflory.teleirc/tests/test.yml +++ /dev/null @@ -1,5 +0,0 @@ ---- -- hosts: localhost - remote_user: root - roles: - - teleirc diff --git a/roles/jwflory.teleirc/vars/example_main.yml b/roles/jwflory.teleirc/vars/example_main.yml deleted file mode 100644 index fe05ae6..0000000 --- a/roles/jwflory.teleirc/vars/example_main.yml +++ /dev/null @@ -1,17 +0,0 @@ ---- -authorized_users: - - myuseraccount - -bots: - my_example_bot: - cn: "my-example-bot" - irc_blacklist: "noisy-irc-bot,ci-build-alerts" - irc_bot_name: tg-my-example-bot - irc_channel: "#ritlug-teleirc-sandbox" - irc_server: "{{ default_irc_server }}" - irc_nickserv_service: "{{ default_irc_nickserv_service }}" - irc_nickserv_password: "{{ vault_bots.my_example_bot.vault_irc_nickserv_password }}" - teleirc_token: "{{ vault_bots.my_example_bot.vault_teleirc_token }}" - teleirc_chat_id: "{{ vault_bots.my_example_bot.vault_teleirc_chat_id }}" - imgur_client_id: "{{ vault_default_imgur_client_id }}" - version: "{{ default_version }}" diff --git a/roles/jwflory.teleirc/vars/example_vault.yml b/roles/jwflory.teleirc/vars/example_vault.yml deleted file mode 100644 index e57ae60..0000000 --- a/roles/jwflory.teleirc/vars/example_vault.yml +++ /dev/null @@ -1,10 +0,0 @@ ---- -# encrypt this with Ansible Vault before committing! - -vault_default_imgur_client_id: "000000000000000" - -vault_bots: - my_example_bot: - vault_irc_nickserv_password: "" - vault_teleirc_token: "000000000:AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" - vault_teleirc_chat_id: "-0000000000000" diff --git a/roles/jwflory.teleirc/vars/main.yml b/roles/jwflory.teleirc/vars/main.yml deleted file mode 100644 index 426a4e2..0000000 --- a/roles/jwflory.teleirc/vars/main.yml +++ /dev/null @@ -1,374 +0,0 @@ ---- -authorized_users: - - jflory - - tjzabel - - x3mboy - -default_imgur_client_id: "{{ vault_default_imgur_client_id }}" -default_irc_server: irc.libera.chat -default_irc_nickserv_service: NickServ -default_version: v1.3.4 - -bots: - fedora: - cn: "fedora" - irc_blacklist: "" - irc_bot_name: teledora - irc_channel: "#fedora-telegram" - irc_server: "{{ default_irc_server }}" - irc_nickserv_service: "{{ default_irc_nickserv_service }}" - irc_nickserv_password: "{{ vault_bots.fedora.vault_irc_nickserv_password }}" - teleirc_token: "{{ vault_bots.fedora.vault_teleirc_token }}" - teleirc_chat_id: "{{ vault_bots.fedora.vault_teleirc_chat_id }}" - imgur_client_id: "{{ default_imgur_client_id }}" - version: "{{ default_version }}" - - # Fedora "Ask Me Anything" chat - fedora_ama: - cn: "fedora-ama" - irc_blacklist: "" - irc_bot_name: tg-fedama - irc_channel: "#fedora-ama" - irc_server: "{{ default_irc_server }}" - irc_nickserv_service: "{{ default_irc_nickserv_service }}" - irc_nickserv_password: "{{ vault_bots.fedora_ama.vault_irc_nickserv_password }}" - teleirc_token: "{{ vault_bots.fedora_ama.vault_teleirc_token }}" - teleirc_chat_id: "{{ vault_bots.fedora_ama.vault_teleirc_chat_id }}" - imgur_client_id: "{{ default_imgur_client_id }}" - version: "{{ default_version }}" - - # Fedora Ask discussion (ask.fedoraproject.org) - fedora_ask: - cn: "fedora-ask" - irc_blacklist: "" - irc_bot_name: tg-fedask - irc_channel: "#fedora-ask" - irc_server: "{{ default_irc_server }}" - irc_nickserv_service: "{{ default_irc_nickserv_service }}" - irc_nickserv_password: "{{ vault_bots.fedora_ask.vault_irc_nickserv_password }}" - teleirc_token: "{{ vault_bots.fedora_ask.vault_teleirc_token }}" - teleirc_chat_id: "{{ vault_bots.fedora_ask.vault_teleirc_chat_id }}" - imgur_client_id: "{{ default_imgur_client_id }}" - version: "{{ default_version }}" - - fedora_badges: - cn: "fedora-badges" - irc_blacklist: "fm-badges,fm-badges_" - irc_bot_name: tg-fedbadges - irc_channel: "#fedora-badges" - irc_server: "{{ default_irc_server }}" - irc_nickserv_service: "{{ default_irc_nickserv_service }}" - irc_nickserv_password: "{{ vault_bots.fedora_badges.vault_irc_nickserv_password }}" - teleirc_token: "{{ vault_bots.fedora_badges.vault_teleirc_token }}" - teleirc_chat_id: "{{ vault_bots.fedora_badges.vault_teleirc_chat_id }}" - imgur_client_id: "{{ default_imgur_client_id }}" - version: "{{ default_version }}" - - # Fedora Brazil - fedora_br: - cn: "fedora-br" - irc_blacklist: "" - irc_bot_name: tg-fed-br - irc_channel: "#fedora-br" - irc_server: "{{ default_irc_server }}" - irc_nickserv_service: "{{ default_irc_nickserv_service }}" - irc_nickserv_password: "{{ vault_bots.fedora_bra.vault_irc_nickserv_password }}" - teleirc_token: "{{ vault_bots.fedora_bra.vault_teleirc_token }}" - teleirc_chat_id: "{{ vault_bots.fedora_bra.vault_teleirc_chat_id }}" - imgur_client_id: "{{ default_imgur_client_id }}" - version: "{{ default_version }}" - - fedora_commops: - cn: "fedora-commops" - irc_blacklist: "commops-bot,commops-bot-s,commops-bot_,commops-watch,commops-watch-s,commops-watch_" - irc_bot_name: tg-fedcommops - irc_channel: "#fedora-commops" - irc_server: "{{ default_irc_server }}" - irc_nickserv_service: "{{ default_irc_nickserv_service }}" - irc_nickserv_password: "{{ vault_bots.fedora_commops.vault_irc_nickserv_password }}" - teleirc_token: "{{ vault_bots.fedora_commops.vault_teleirc_token }}" - teleirc_chat_id: "{{ vault_bots.fedora_commops.vault_teleirc_chat_id }}" - imgur_client_id: "{{ default_imgur_client_id }}" - version: "{{ default_version }}" - - fedora_design: - cn: "fedora-design" - irc_blacklist: "fm-design,fm-stg-design,fm-design_" - irc_bot_name: tg-feddesign - irc_channel: "#fedora-design" - irc_server: "{{ default_irc_server }}" - irc_nickserv_service: "{{ default_irc_nickserv_service }}" - irc_nickserv_password: "{{ vault_bots.fedora_design.vault_irc_nickserv_password }}" - teleirc_token: "{{ vault_bots.fedora_design.vault_teleirc_token }}" - teleirc_chat_id: "{{ vault_bots.fedora_design.vault_teleirc_chat_id }}" - imgur_client_id: "{{ default_imgur_client_id }}" - version: "{{ default_version }}" - - fedora_devel: - cn: "fedora-devel" - irc_blacklist: "" - irc_bot_name: tg-feddevel - irc_channel: "#fedora-devel-tg" - irc_server: "{{ default_irc_server }}" - irc_nickserv_service: "{{ default_irc_nickserv_service }}" - irc_nickserv_password: "{{ vault_bots.fedora_devel.vault_irc_nickserv_password }}" - teleirc_token: "{{ vault_bots.fedora_devel.vault_teleirc_token }}" - teleirc_chat_id: "{{ vault_bots.fedora_devel.vault_teleirc_chat_id }}" - imgur_client_id: "{{ default_imgur_client_id }}" - version: "{{ default_version }}" - - fedora_diversity: - cn: "fedora-diversity" - irc_blacklist: "fm-diversity,fm-stg-diversity,fm-diversity_" - irc_bot_name: tg-fed-di - irc_channel: "#fedora-diversity" - irc_server: "{{ default_irc_server }}" - irc_nickserv_service: "{{ default_irc_nickserv_service }}" - irc_nickserv_password: "{{ vault_bots.fedora_diversity.vault_irc_nickserv_password }}" - teleirc_token: "{{ vault_bots.fedora_diversity.vault_teleirc_token }}" - teleirc_chat_id: "{{ vault_bots.fedora_diversity.vault_teleirc_chat_id }}" - imgur_client_id: "{{ default_imgur_client_id }}" - version: "{{ default_version }}" - - fedora_docs: - cn: "fedora-docs" - irc_blacklist: "" - irc_bot_name: tg-fdocs - irc_channel: "#fedora-docs" - irc_server: "{{ default_irc_server }}" - irc_nickserv_service: "{{ default_irc_nickserv_service }}" - irc_nickserv_password: "{{ vault_bots.fedora_docs.vault_irc_nickserv_password }}" - teleirc_token: "{{ vault_bots.fedora_docs.vault_teleirc_token }}" - teleirc_chat_id: "{{ vault_bots.fedora_docs.vault_teleirc_chat_id }}" - imgur_client_id: "{{ default_imgur_client_id }}" - version: "{{ default_version }}" - - # Fedora Ecuador - fedora_ec: - cn: "fedora-ec" - irc_blacklist: "" - irc_bot_name: tg-fedec - irc_channel: "#fedora-ec" - irc_server: "{{ default_irc_server }}" - irc_nickserv_service: "{{ default_irc_nickserv_service }}" - irc_nickserv_password: "{{ vault_bots.fedora_ec.vault_irc_nickserv_password }}" - teleirc_token: "{{ vault_bots.fedora_ec.vault_teleirc_token }}" - teleirc_chat_id: "{{ vault_bots.fedora_ec.vault_teleirc_chat_id }}" - imgur_client_id: "{{ default_imgur_client_id }}" - version: "{{ default_version }}" - - fedora_flock: - cn: "fedora-flock" - irc_blacklist: "" - irc_bot_name: tg-flock - irc_channel: "#fedora-flock" - irc_server: "{{ default_irc_server }}" - irc_nickserv_service: "{{ default_irc_nickserv_service }}" - irc_nickserv_password: "{{ vault_bots.fedora_flock.vault_irc_nickserv_password }}" - teleirc_token: "{{ vault_bots.fedora_flock.vault_teleirc_token }}" - teleirc_chat_id: "{{ vault_bots.fedora_flock.vault_teleirc_chat_id }}" - imgur_client_id: "{{ default_imgur_client_id }}" - version: "{{ default_version }}" - - # Fedora i3 SIG - fedora_i3: - cn: "fedora-i3" - irc_blacklist: "" - irc_bot_name: tg-i3 - irc_channel: "#fedora-i3" - irc_server: "{{ default_irc_server }}" - irc_nickserv_service: "{{ default_irc_nickserv_service }}" - irc_nickserv_password: "{{ vault_bots.fedora_i3.vault_irc_nickserv_password }}" - teleirc_token: "{{ vault_bots.fedora_i3.vault_teleirc_token }}" - teleirc_chat_id: "{{ vault_bots.fedora_i3.vault_teleirc_chat_id }}" - imgur_client_id: "{{ default_imgur_client_id }}" - version: "{{ default_version }}" - - fedora_india: - cn: "fedora-india" - irc_blacklist: "" - irc_bot_name: tg-fedindia - irc_channel: "#fedora-india" - irc_server: "{{ default_irc_server }}" - irc_nickserv_service: "{{ default_irc_nickserv_service }}" - irc_nickserv_password: "{{ vault_bots.fedora_india.vault_irc_nickserv_password }}" - teleirc_token: "{{ vault_bots.fedora_india.vault_teleirc_token }}" - teleirc_chat_id: "{{ vault_bots.fedora_india.vault_teleirc_chat_id }}" - imgur_client_id: "{{ default_imgur_client_id }}" - version: "{{ default_version }}" - - fedora_join: - cn: "fedora-join" - irc_blacklist: "fm-join,fm-join_,fm-stg-join,fm-stg-join_" - irc_bot_name: tg-fedjoin - irc_channel: "#fedora-join" - irc_server: "{{ default_irc_server }}" - irc_nickserv_service: "{{ default_irc_nickserv_service }}" - irc_nickserv_password: "{{ vault_bots.fedora_join.vault_irc_nickserv_password }}" - teleirc_token: "{{ vault_bots.fedora_join.vault_teleirc_token }}" - teleirc_chat_id: "{{ vault_bots.fedora_join.vault_teleirc_chat_id }}" - imgur_client_id: "{{ default_imgur_client_id }}" - version: "{{ default_version }}" - - # Fedora Latin America - fedora_latam: - cn: "fedora-latam" - irc_blacklist: "fedoralatam_bot" - irc_bot_name: tg-fedlatam - irc_channel: "#fedora-latam" - irc_server: "{{ default_irc_server }}" - irc_nickserv_service: "{{ default_irc_nickserv_service }}" - irc_nickserv_password: "{{ vault_bots.fedora_latam.vault_irc_nickserv_password }}" - teleirc_token: "{{ vault_bots.fedora_latam.vault_teleirc_token }}" - teleirc_chat_id: "{{ vault_bots.fedora_latam.vault_teleirc_chat_id }}" - imgur_client_id: "{{ default_imgur_client_id }}" - version: "{{ default_version }}" - - fedora_mindshare: - cn: "fedora-mindshare" - irc_blacklist: "" - irc_bot_name: tg-fedmindshare - irc_channel: "#fedora-mindshare" - irc_server: "{{ default_irc_server }}" - irc_nickserv_service: "{{ default_irc_nickserv_service }}" - irc_nickserv_password: "{{ vault_bots.fedora_mindshare.vault_irc_nickserv_password }}" - teleirc_token: "{{ vault_bots.fedora_mindshare.vault_teleirc_token }}" - teleirc_chat_id: "{{ vault_bots.fedora_mindshare.vault_teleirc_chat_id }}" - imgur_client_id: "{{ default_imgur_client_id }}" - version: "{{ default_version }}" - - fedora_marketing: - cn: "fedora-marketing" - irc_blacklist: "fm-mktg,fm-stg-mktg" - irc_bot_name: tg-fedmktg - irc_channel: "#fedora-mktg" - irc_server: "{{ default_irc_server }}" - irc_nickserv_service: "{{ default_irc_nickserv_service }}" - irc_nickserv_password: "{{ vault_bots.fedora_marketing.vault_irc_nickserv_password }}" - teleirc_token: "{{ vault_bots.fedora_marketing.vault_teleirc_token }}" - teleirc_chat_id: "{{ vault_bots.fedora_marketing.vault_teleirc_chat_id }}" - imgur_client_id: "{{ default_imgur_client_id }}" - version: "{{ default_version }}" - - # Fedora ML - fedora_ml: - cn: "fedora-ml" - irc_blacklist: "" - irc_bot_name: tg-fedml - irc_channel: "#fedora-ml" - irc_server: "{{ default_irc_server }}" - irc_nickserv_service: "{{ default_irc_nickserv_service }}" - irc_nickserv_password: "{{ vault_bots.fedora_ml.vault_irc_nickserv_password }}" - teleirc_token: "{{ vault_bots.fedora_ml.vault_teleirc_token }}" - teleirc_chat_id: "{{ vault_bots.fedora_ml.vault_teleirc_chat_id }}" - imgur_client_id: "{{ default_imgur_client_id }}" - version: "{{ default_version }}" - - fedora_neuro: - cn: "fedora-neuro" - irc_blacklist: "" - irc_bot_name: tg-fedneuro - irc_channel: "#fedora-neuro" - irc_server: "{{ default_irc_server }}" - irc_nickserv_service: "{{ default_irc_nickserv_service }}" - irc_nickserv_password: "{{ vault_bots.fedora_neuro.vault_irc_nickserv_password }}" - teleirc_token: "{{ vault_bots.fedora_neuro.vault_teleirc_token }}" - teleirc_chat_id: "{{ vault_bots.fedora_neuro.vault_teleirc_chat_id }}" - imgur_client_id: "{{ default_imgur_client_id }}" - version: "{{ default_version }}" - - # Fedora Panama - fedora_pa: - cn: "fedora-pa" - irc_blacklist: "" - irc_bot_name: tg-fedpa - irc_channel: "#fedora-pa" - irc_server: "{{ default_irc_server }}" - irc_nickserv_service: "{{ default_irc_nickserv_service }}" - irc_nickserv_password: "{{ vault_bots.fedora_pa.vault_irc_nickserv_password }}" - teleirc_token: "{{ vault_bots.fedora_pa.vault_teleirc_token }}" - teleirc_chat_id: "{{ vault_bots.fedora_pa.vault_teleirc_chat_id }}" - imgur_client_id: "{{ default_imgur_client_id }}" - version: "{{ default_version }}" - - # Fedora QA - fedora_qa: - cn: "fedora-qa" - irc_blacklist: "" - irc_bot_name: tg-fedqa - irc_channel: "#fedora-qa" - irc_server: "{{ default_irc_server }}" - irc_nickserv_service: "{{ default_irc_nickserv_service }}" - irc_nickserv_password: "{{ vault_bots.fedora_qa.vault_irc_nickserv_password }}" - teleirc_token: "{{ vault_bots.fedora_qa.vault_teleirc_token }}" - teleirc_chat_id: "{{ vault_bots.fedora_qa.vault_teleirc_chat_id }}" - imgur_client_id: "{{ default_imgur_client_id }}" - version: "{{ default_version }}" - - # Fedora Silverblue - fedora_silverblue: - cn: "fedora-silverblue" - irc_blacklist: "" - irc_bot_name: tg-silverblue - irc_channel: "#silverblue" - irc_server: "{{ default_irc_server }}" - irc_nickserv_service: "{{ default_irc_nickserv_service }}" - irc_nickserv_password: "{{ vault_bots.fedora_silverblue.vault_irc_nickserv_password }}" - teleirc_token: "{{ vault_bots.fedora_silverblue.vault_teleirc_token }}" - teleirc_chat_id: "{{ vault_bots.fedora_silverblue.vault_teleirc_chat_id }}" - imgur_client_id: "{{ default_imgur_client_id }}" - version: "{{ default_version }}" - - # Fedora Albania - fedora_sq: - cn: "fedora-sq" - irc_blacklist: "" - irc_bot_name: tg-fedsq - irc_channel: "#fedora-sq" - irc_server: "{{ default_irc_server }}" - irc_nickserv_service: "{{ default_irc_nickserv_service }}" - irc_nickserv_password: "{{ vault_bots.fedora_sq.vault_irc_nickserv_password }}" - teleirc_token: "{{ vault_bots.fedora_sq.vault_teleirc_token }}" - teleirc_chat_id: "{{ vault_bots.fedora_sq.vault_teleirc_chat_id }}" - imgur_client_id: "{{ default_imgur_client_id }}" - version: "{{ default_version }}" - - fedora_summer_coding: - cn: "fedora-summer-coding" - irc_blacklist: "" - irc_bot_name: tg-fedsumcode - irc_channel: "#fedora-summer-coding" - irc_server: "{{ default_irc_server }}" - irc_nickserv_service: "{{ default_irc_nickserv_service }}" - irc_nickserv_password: "{{ vault_bots.fedora_summer_coding.vault_irc_nickserv_password }}" - teleirc_token: "{{ vault_bots.fedora_summer_coding.vault_teleirc_token }}" - teleirc_chat_id: "{{ vault_bots.fedora_summer_coding.vault_teleirc_chat_id }}" - imgur_client_id: "{{ default_imgur_client_id }}" - version: "{{ default_version }}" - - fedora_women: - cn: "fedora-women" - irc_blacklist: "" - irc_bot_name: tg-fedwomen - irc_channel: "#fedora-women" - irc_server: "{{ default_irc_server }}" - irc_nickserv_service: "{{ default_irc_nickserv_service }}" - irc_nickserv_password: "{{ vault_bots.fedora_women.vault_irc_nickserv_password }}" - teleirc_token: "{{ vault_bots.fedora_women.vault_teleirc_token }}" - teleirc_chat_id: "{{ vault_bots.fedora_women.vault_teleirc_chat_id }}" - imgur_client_id: "{{ default_imgur_client_id }}" - version: "{{ default_version }}" - - # Fedora China - fedora_zh: - cn: "fedora-zh" - irc_blacklist: "" - irc_bot_name: tg-fzh - irc_channel: "#fedora-zh" - irc_server: "{{ default_irc_server }}" - irc_nickserv_service: "{{ default_irc_nickserv_service }}" - irc_nickserv_password: "{{ vault_bots.fedora_zh.vault_irc_nickserv_password }}" - teleirc_token: "{{ vault_bots.fedora_zh.vault_teleirc_token }}" - teleirc_chat_id: "{{ vault_bots.fedora_zh.vault_teleirc_chat_id }}" - imgur_client_id: "{{ default_imgur_client_id }}" - version: "{{ default_version }}" diff --git a/roles/jwflory.teleirc/vars/vault.yml b/roles/jwflory.teleirc/vars/vault.yml deleted file mode 100644 index ff1c8f6..0000000 --- a/roles/jwflory.teleirc/vars/vault.yml +++ /dev/null @@ -1,250 +0,0 @@ -$ANSIBLE_VAULT;1.1;AES256 -36313032316539383566666537616239333838323032396135343362636431653964646430643032 -6264316339323933326265636161316534396337393031620a646333373130316231316630663231 -63393739613463333530653466383936336430386464336332356438336337383832386530636665 -3237393332343364330a643835306335663839323336373330346664313337373639656135623035 -34633466373764643861383363393939616531663861303631613934626363323131653062643533 -62646530386535363465373761363661633435386563383737353335626265386362643433353531 -37323061616137623736376131616263346665626239616132323238366262333161316532373666 -66333932646463393633346663643037386639313131323161376363373731613832373632313935 -30383535396437376335373265633939323632326665646466363530366266633665633065336434 -32306531373132353561383566646135356566343832656131303635616433326161363966326136 -33383563346164626531303231633933303638333936343335616262343736393962356639616263 -36653739353635343233383931623162346234306136613463343465393833343864356638623035 -62393132616235373231343766323062333933393834366633663632666632626131376338333665 -34643866656537363763306435363261643532326363386535386134333037356130613239656366 -38336130333532613531663635376632646662666431356661626465386535626364393038393564 -35663736313536623263363337646262653662633266643936636533393836396130316265663330 -32663665343361623234626633666163653862333761313863333766653161353735636336323732 -64313133343538363463373161363037643262363765643538313033393762313435333332653065 -66326163646630663638353061356537336333303439393964623035376539336630373234643932 -66616432316462663137656332643535613637303265363966313331643865353866613737376430 -65376363373239393466663336613030393234666133636438313831383830376238343563386432 -61663263316333666638363039393566356634316436633164363033643032366534653732363062 -65666234353534376132323565306264383531353736623632636439393830633265303038373234 -38326235366431623439633931353562366136663733303238646336363566303465656630363965 -30343361326230383536393432396438363534643533373934353938636333626538343463306335 -34333931353262346137393437376232333663363364663033333232643465363038356362363064 -66656466336465366562353131653635663337323431323638316564353832396136643361656238 -31366435646231326438393237303063343139396535666239653965313131323438356662383235 -37613164623535346265366530613331306430316661613765386263303965643435376637376330 -38306133313733343664336166643364626364616532646162383433636135306333363763346664 -37646335636632363639323834396366393433363830643835363031373266633865316231346263 -34346638303361373165363664303432383863353466313138623130636337376266303262616435 -65333037626565313937323735326336373164366133643062636532633033366239666163383063 -65366535333861383031666634633766656463393564393538336234333961636564333766386132 -37663663363565333964623134306165623561373539366365353037623061393032336465666134 -65633036623366393130636532323066646439353662646636396235643763626237393639636534 -38643939343965306165386630313039356635336565613430393166343132313334383765316333 -39373130643564346263363364333436653761376438326531653662353962303262303966333135 -62316432326261666161386163663334353539393230653661386262396563396635343031643333 -61616431343638363534663062343535376235313031613462356531613262386630376136656337 -31613062643234303230633736343438333066313231336335353731303663373530626364373038 -65393337393438623964366138396531333735343936663830653030633030343131346661343339 -31393930613863386261313435326366626362373132333765643766323931653765383464393866 -61373136326463323936623763353533333264643935343765633966396165383737336133393433 -35636166623335623065643234326231356630633238353530623932303766663337393332636465 -61313838313130643234353765396432333030356330373461306536373864636366363731633334 -64353530626633326130646436613435646234323664333161386361323166323361373634666334 -34356633336565383831363863653031666264393232323664313533613435376662313331633265 -39383165353131363633366131353633626364653162356331316533393965356534336431613137 -33626332343831323933303530393664643531666464626634393461306230303161623832623635 -61356137623264666436363566656338333037613231613331353031636334663235316136386365 -65323639616331383762386631623837643963323738643538303963333964633133333231356261 -33393365363338383961343337626264653733333638306335393366343862613233616439396139 -37373363616535646362623462363566323933663530346131623431383664343331376230623161 -34653736636237303932653861396135303735346633623063656263353039326337313364636239 -31353836373166633433633464643133376335633833396661356330303866316361396162303730 -65383334616139366539333737663133633661303561366331346666666434356535383961643362 -36633261316366663463343764323338336161646235613236336264313261373534353337303564 -64353036313762646439363063386536303730663036376462306439623938396463386437343339 -35353931306538336533323032633366363139363862643864363438396235633833633764653062 -39343864353032313461653533366639303562613433343865633064626139353365323466643566 -33316438306462306663326136323033663564326239336638313263623464666137303237363733 -39396238623164623730623334333264616366353263636438383663663764376166623361323263 -66363433386236393035396239386164313165623733386561326533386137613463613133623931 -31663834383865383133623134343265333862323831363063323165376331633034363462623665 -61613537356561356264353739353233303334653066326436393762373032343732353034376330 -66376131306365373866393033373662656162346539616433646335393034666338643066343461 -65653437393562336661323539653231653431616633303262326130313761323436656266623837 -66356538656233663266653035316366663230356632656262326333376337396537626632323862 -35353634303338643532396561656463636234663761616164383238613936616136353637303266 -61643236333733333661636630383763393635316137316665313965346433646336326466653533 -37306463653465303162333637666637653235343434373831373731666631363438313861363364 -65346434643836303633353065346663373263366464366566376230613236633865323838343864 -37343232616133633762323265396334353633646163353539386439326365613034653563336234 -66386539633832373038316330396238326663336636663262623734386666313166323831646636 -33373030356636306536386133363266333032633434373636366435646561336164613539383834 -37646434393336353237356531663762346637343233646639636261663163303264393138393138 -61313933646436656438633063353538653962663961326230356633323039303239373333633163 -33666530313534666264376133663663383233376138356562303536333362313162343566343836 -64636266356235303164396534623134623466646237303534623936626639623232313638353564 -66386535376361303263363166636438393132623032616234646332373865333330633133373633 -61303336336635623830306336366139663834666632626531646136393832653736613735383262 -63653464623132303330656630643538613238316462633533346437393734363162656663386266 -35343534303166306461316133383564306430376662613935633239663431613263326631653431 -63666439393237383964323530303230656366353337643365643664616365383038663035303165 -63376530373339613237313432356664303534643730626532313735396465643964613031623539 -61623633313462326532376234326334326531306166663663303664396630373038396233346161 -64386166303864623133633833346433373866313766666264313634663431326131356437663835 -38616563386362326363626266383531353030346237366239323635313239316231663239303665 -31363436336565313366363134333339303466346361366439303431326239323335373965633532 -34316534336238306530653533313932643232386166616639646261353839663531613133353531 -32396132623731376262323738616434303739666565353364646136313765366236656365393633 -38613961313363326463653561333338303832323139383266363134636430653234313464343434 -34323265623966396561313062366638383734393136363036316263366330336537396334613665 -33343734343730663432653062623061373434343136383131626565626230393463623631663437 -35393263353463353733643662626364373738373264643661613431376163323166373861306163 -61653466346163396337653732653130373766613330626339613664613934343539313663623961 -31663664656538363263656430646166303337393366633930653834313530373930353934616630 -39323861623535303731313539386233393466346466393236653066343531646630626631323166 -35343535393836613133613865303662663830626138313064656463386637376433306666636330 -30643936623038336533303066633638316336626465616531333562323238366462636165393061 -64383031616565386135616138386332313336613032623662613966376538356533626433636365 -64303337646637386265653037636139316135393966373333316632373531643039343034626334 -39316562393933396531616138653261653930653338613166393761646164356664653864323131 -30643030383664313032306533323465396139313762386165313763323831633233643563313966 -65616438643533343439623835376562343364323837616662616233613436336238646637323464 -65396536613137316134353534336534663534396534646633373665396462363764616166356461 -37316538363137336632626434636436656534353632326365623339303831326130616434346436 -34353931383630626566383663633638346132313763663032613763333432643764363464383130 -36386533663566376338343662616365653162643332356133616532323334373861316561633461 -38613435653032323664363038616362613465333133343637326561303438376237313633643261 -66633233313561623138383636363837633662343263653638636364396138326337326661333134 -66396663303865343062383265316236616531323466623565323538636366356637333266323733 -63336362613039306563326163346230366330303436636564666363366262336333313735376636 -63636365346637386230623063393466306231333039316636346661666363326632643461313865 -63656135626165376536373637376337646639373565613137336365353136646631613633616362 -39343662343365633937313735396435623565393030613564376663303432306232353362393134 -61323534643163623430343866653630333361626537616136313036623230663364316664306233 -30643635333639393734613635313930326334326466353765316339326433626361373137653535 -32313037303639366338313631303730363037623638343630656561306338616432303661633461 -62356536313562383965633437626439333764313731316161346366383565663733643165393339 -35646664626561336638653234623662356430623965333832666633623862616166643033343832 -31373335636635353836343439623038323763376433353830326637303936646532383535323161 -64343363626439616165643763306135646631313239326233636532636164366138306562346435 -35653963393132613434383032323937623239373731383330373438396336623038373563646136 -36326132626132346161333065653364636439356334373039316266653766623938616232633234 -33663466366630393632666163356161623261316337383138303963366465633436326566316137 -64613835656133643666653635313637303038306338303333663065363965353363633135363565 -34373834323635666238326463666332613531616234383135616361663433303263613135353063 -35383761653438323737376531386131336634643664626137393862336163333237323633633738 -35346131363665613362363965306462333932366434653965313936326339343062353639663439 -63656165386435356662363661383963643162366561626636306261616336663335636330633937 -66636333613264396239363536633965396138333264363835396338356333333138643335333332 -62653732656632646335303339656164383633353232633336373636616435373762356631626131 -38366164633864373237616565333666316539346134396331353838373436326234323332383831 -61323334356130346437396639333463623530323233343231393339613637643966356664383831 -39663631663338346538623532333135306536666633663365346662366663393030396231653331 -38323633333366333531393737616338336133643038353434366232356236653033316633346538 -35613462313137303363366336373035383463383532363263303030316464323631363535316333 -35363530663430373163323231363934396630636437323063613764373537383935366635626632 -66636132366364653261613965373430313565633963393430383433656432663033333162346136 -36653462373362396262613831663637626237623934333839373166643131316135383833333632 -64633230326130353837306236303931353862613534643661363430623335613531303730383330 -34323839613063313133366233376163393263343462623430363337343763343664313738396264 -33646335303364303038323438303765653764343862373233303233616265663633653539626633 -65643762393131353134353561336233323839623132396464343939626336323032383533353731 -63373232323330666337653037333234356162396331663832336531383534313161316265323861 -31333764336435393163366630376661353237313033353564333561396633616430616137313630 -39616664396131313334383566356165346330626364343636373138373835356264346564306464 -66323165303363626163653934356161646566656331326466626431366565633965346131356137 -32373063663165636631303333633562666361626535323239386131346535383763313263356533 -31356364343635633933323033386635613766313461346366323037326562333236313364393161 -62613136616137343730653363346236333465336166376137393130353438636162356437646331 -35653465353730393566363930303166383131326137653132616139653536666631656337363633 -63313531303462363630333836653136663466636638356563326234336338353533326235356462 -63393932393334383836376534393337313362633236633434326637623638373835633666636432 -31316332616638303434636234383832623666353034646538636138613537626365646135313761 -38303038396236663431396239346336363738323534346261393531396235346263656133626435 -33663861313366623637383730346166373561666665323534343630303165366132316539386534 -37333632326561366433306539663033666631356431336262313764383136376530376432346366 -36316335633936353165636138333834306462323734613935393532666261623233616363656365 -39366162646166363330633535303965386530626162626564333639346265313333343865653838 -30366237343835363131616337653536306534633637376130373765663436356438386231316666 -34356664326661353236323530303435396135303031646433346562313861646665333833303737 -36353137346136353536333563633330313663616333613338646531653532386233303135393437 -63613030353732353339363138306437636566383263336233643965393366666133616665353530 -61663364613936353365616661333933363762623762333537376139353831323931306163653862 -66616332633532326638303366633138613463376162373530353536376436616363386432383564 -34663162626431643935333563626461663534616533643332303661663238303030653666346364 -61633836353232653236376537336237396533663734626135303363363237316162326137303135 -36393230396631323465383038393238373863326234633234613337373661643837353563343439 -37323136336666626430376635656238323938303063343636656139633161393736343432376535 -30336661306539666466613036656235343564306238663863323338383435316465316564383839 -31663065386264386163386564316633666638626535303434376537623638353333623762313239 -32643132393638316134633239613736386536333237383431353331333831353464636239663564 -39643033653966323361613237663539613033343139373666313730316234393365303232366435 -36336262643866633430666432323632303463396235373664336336386366366338303966396666 -61613930353462373137323664653963646563626463336361376332646630323162623037363638 -65616666393765633230313865653438663262653662643233303864363532353765376636643134 -35373161396538383339383938333236366266666637323439333533333232383536356237663931 -33646632623363303730323038623063373861353035653164306366366366316338336233336137 -33383366353763376133626332303061313232323833666362616132373765353562653832623939 -65363731363133393963343835313534303834323034653963356231626133623430666535336533 -65623065656565623232343462666536663131333264393061343161363465633033643065646338 -66326664313936343335613563636562353230386566316437626430333830666431303437653735 -33613763333031383735373032346161303935346664323333303366316336663666373032336264 -66313238333234323865623736613239613663356661353936316531346234656439636237366362 -37643362643838626333326462313766643832623064646431663063623762313764336432613762 -32626136373762646139643934323632316465613366303335636561613464313431376533343461 -64376135363062376238386163373538653961323565333336646331643037626134643335366565 -35336237313065633032616663613037396562363835383262623036643435613963656165643930 -31353061353739316165616465626664393466383063623063303231616331613964646335363266 -63363632356436346333376661316464353331613038363832303231393462333337323662343661 -30666131666534346331663339663762653964656636356135316635323065666137636535373432 -35633031336338326163393563313638623630303936326564613738613034326137313736303565 -34663838303231653465653433643066666234326631343261316638323631613061353731326533 -66333463626232333037376639656533653830303630656333326539333265626138383065623765 -65626137663239636563656430323731386461666437643639653662346532383537653335666461 -35303433373435303763643166646566353465636332393234633266376562653434363131306162 -63623165633530646237646231656131343262333731643366633235656231386237653836363830 -31666330306435373339623134326634383765336534353166376530373030333135643863313531 -64323034326133613963336261636331613465616232326334633336653835633963643235616663 -32613966626635363839613337346465336235326264666534373266393961383637326136333766 -38353031393137323739613661303464363235653631326633633131363839346132353661643162 -34373235326262363363363864323031326435323966306636643839333538333762353864323461 -32666563353861623330623464343266323230613536313765333534653336333462623762383731 -35626362373763333833313536646336396232323237336338643234356335616437356436666166 -38313832363230663136386630623435643637333233346166626530366334643531386265333633 -61643665663864313734303239653663386330303630393337643766366264663931626432336338 -65306462633430663530366261343335666162633162346535663431643538363430363439396133 -35333130653233326163616431616335326365353931396162653062326465336562353431653364 -62303561613038616463333533646165376533653065666632626461633663323136356263346134 -64646439383733623538343537333536643639323264316131636663396532643165323661663539 -63333262656234306635613266356535363833373563376437373730363333666564396535653465 -38323437343463633632653631393034623263333962643330613633363165333637316166386462 -36613762663437363039343930363862663964346430656365646261346462643130373161356537 -66633130313931313735613130333034646261653534363965633364643235376364323665333339 -63666566613565613039323566356563303137386566323163656664393937663932636661363531 -66356330393062356161333330376265663861373636306265626634313334313638616136626463 -33323331326237373638626562336264663739353937613239373337646239303764623733623435 -37306331623163373631396532383039366464303034656437616637346135663338363061303463 -30383362376631323537396330363830396435306563373031616638616364303138626334346566 -65663332613934323361373832643538663065343938396235633536383037353330353264346333 -64643639383331353564353230653336356330303239316532623763373838373535616538646231 -37346336393438393139346236383563346364366334613435313366653532336530646163626330 -38333865383332643362616636393332313563313763363536356662663431313237323830323661 -62393737613766323130323664343733313335373066336433333362333938396136666639636361 -64663866636135613365613531643165376339313263326239303762313234323764343862383633 -61313564633236666537663862663165343934303532343961633632363339303937653539663862 -39323661643633333035383332393131663333656130396237383065313561353931363230393137 -31346231373131663166366236663666636365383663633439393136613836363065633261343938 -66376430383264333163653735353936333533333237363235636231396535613732383362653631 -65623564326233663238666231626431616637636263636139653837383665353664646364343463 -36633238333439333430623439353262346537613461363939616464393836613139306564633639 -62613562373837386431306264396266643133666634376434633431653463336635656238613030 -62336232623037383338326636646232663161623739643432303230323362616533356635633939 -65323564376661393263363234376430633633393365353330373434636236383566633761333765 -37366331356566313236373661613634313561613832346131626261623466613836633534313730 -34623539363364353237396633643631393436356637313833306362373936363130656438343764 -61626338306366386633613632396433373431653333653035636561623034366566616566653839 -30663038313861666330363333386532313261633739363131636264313864363934386661313563 -39383430386637323563626139363032313738663130313231323737313965636534663138626339 -32383630306330326564363135396535633737636663636163316263313464623534306365346337 -64386638336233396239626337303961383038646631366663333130643466373463613239626632 -36393937396534366331306534646662373865353634303663623662356437333564383666303633 -64633736646664333134636265646137643665313836313761623934343236613862303431313761 -62333464323335656430313436363138346534613061646264643035643866323136356461666536 -32346434633531373638636436666339383931323337363962376431383862646536653065373832 -6265 diff --git a/roles/sshd/handlers/main.yml b/roles/sshd/handlers/main.yml deleted file mode 100644 index 6207454..0000000 --- a/roles/sshd/handlers/main.yml +++ /dev/null @@ -1,5 +0,0 @@ ---- -- name: restart sshd - service: - name: sshd - state: restarted diff --git a/roles/sshd/tasks/main.yml b/roles/sshd/tasks/main.yml deleted file mode 100644 index b9feef1..0000000 --- a/roles/sshd/tasks/main.yml +++ /dev/null @@ -1,26 +0,0 @@ ---- -- name: ensure target users exist - user: - name: "{{ target_users }}" - -- name: create SSH config directories for target user (~/.ssh) - file: - state: directory - path: "{{ user_home_dir }}/.ssh" - owner: "{{ target_user }}" - group: "{{ target_user }}" - mode: 0700 - -- name: add SSH public key to authorized_keys for target user (~/.ssh/authorized_keys) - template: - src: authorized_keys - dest: "{{ user_home_dir }}/.ssh/authorized_keys" - owner: "{{ target_user }}" - group: "{{ target_user }}" - mode: 0400 - -- name: configure SSH server (/etc/ssh/sshd_config) - template: - src: sshd_config - dest: "/etc/ssh/sshd_config" - notify: restart sshd diff --git a/roles/sshd/templates/authorized_keys b/roles/sshd/templates/authorized_keys deleted file mode 100644 index f59e9d8..0000000 --- a/roles/sshd/templates/authorized_keys +++ /dev/null @@ -1 +0,0 @@ -ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQC8DeS5MYUi+Qr4x8jH948DkLwupT+3o8qky1ikw++qqAJFPV4IzOa6jbT96nkYN3dXQPzh7N1pTHUa0Ep4eRtf0v4+aR0BCiVSQ7TxQ/kXDUbQFrEtL3j9ooQ+iD5jxxbtOnfmGlRjorf0nLVUcgyZFZXjBAS8BxXihJ2BraoqqdmlcUdTg+XgEYg98D+DK5L4re4zRdmnlDEVcwJD4pNNZQ3MPamTazTuFCSUSGKUJjjGIg4IQp1/OOR5KYgzfNUBB7F7B965vo1LWAgD6HOgkntv9qGqeumYbQ3vbPXOQYafyHTphgM04OxZuxdgS1cmhTDIH8CMwCqOkeRRBWBw+iH2tjqT+Jdb0w+kV+ZPI5XdmfhFje51a3nh7WrokRbuCWmBjZtqG/nyofIpA3zcXk14JaJKwHA85LYjrfwzDijQn0WH2GSH9ifviXuzauHISWJu/1pzLOmeJ6fok/NFR77gOaF9AGV2h/nb3w06pRNiiVbdQF6oXKcDk8YSDeec1ycHAanBF5TELLQvPeJpd/TTZTNME2izbkgvh6DLi6NM+L6gsyCGco6bds6/UFlebMvzsxZzux6CUOrLCGhHJxmvi7IGno6bC3owtxJoNtlGIzBOkDFKjq5BJK5SmrZt5y7bLyfmKDVKDRGxcGOABq5PQtx/pfDKmOiAQvD1ZQ== me@justinwflory.com diff --git a/roles/sshd/templates/sshd_config b/roles/sshd/templates/sshd_config deleted file mode 100644 index a070820..0000000 --- a/roles/sshd/templates/sshd_config +++ /dev/null @@ -1,144 +0,0 @@ -############################################################################### -# # -# THIS FILE IS MANAGED BY ANSIBLE! CHANGES ARE OVERWRITTEN. # -# https://github.com/jwflory/infrastructure # -# # -############################################################################### - -# This is the sshd server system-wide configuration file. See -# sshd_config(5) for more information. - -# This sshd was compiled with PATH=/usr/local/bin:/usr/bin - -# The strategy used for options in the default sshd_config shipped with -# OpenSSH is to specify options with their default value where -# possible, but leave them commented. Uncommented options override the -# default value. - -# If you want to change the port on a SELinux system, you have to tell -# SELinux about this change. -# semanage port -a -t ssh_port_t -p tcp #PORTNUMBER -# -#Port 22 -#AddressFamily any -#ListenAddress 0.0.0.0 -#ListenAddress :: - -HostKey /etc/ssh/ssh_host_rsa_key -#HostKey /etc/ssh/ssh_host_dsa_key -HostKey /etc/ssh/ssh_host_ecdsa_key -HostKey /etc/ssh/ssh_host_ed25519_key - -# Ciphers and keying -#RekeyLimit default none - -# Logging -#SyslogFacility AUTH -SyslogFacility AUTHPRIV -#LogLevel INFO - -# Authentication: -AllowUsers jflory -#LoginGraceTime 2m -PermitRootLogin no -#StrictModes yes -#MaxAuthTries 6 -#MaxSessions 10 - -#PubkeyAuthentication yes - -# The default is to check both .ssh/authorized_keys and .ssh/authorized_keys2 -# but this is overridden so installations will only check .ssh/authorized_keys -#AuthorizedKeysFile .ssh/authorized_keys - -#AuthorizedPrincipalsFile none - -#AuthorizedKeysCommand none -#AuthorizedKeysCommandUser nobody - -# For this to work you will also need host keys in /etc/ssh/ssh_known_hosts -#HostbasedAuthentication no -# Change to yes if you don't trust ~/.ssh/known_hosts for -# HostbasedAuthentication -#IgnoreUserKnownHosts no -# Don't read the user's ~/.rhosts and ~/.shosts files -#IgnoreRhosts yes - -# To disable tunneled clear text passwords, change to no here! -#PasswordAuthentication yes -#PermitEmptyPasswords no -PasswordAuthentication no - -# Change to no to disable s/key passwords -#ChallengeResponseAuthentication yes -ChallengeResponseAuthentication no - -# Kerberos options -#KerberosAuthentication no -#KerberosOrLocalPasswd yes -#KerberosTicketCleanup yes -#KerberosGetAFSToken no -#KerberosUseKuserok yes - -# GSSAPI options -GSSAPIAuthentication no -GSSAPICleanupCredentials no -#GSSAPIStrictAcceptorCheck yes -#GSSAPIKeyExchange no -#GSSAPIEnablek5users no - -# Set this to 'yes' to enable PAM authentication, account processing, -# and session processing. If this is enabled, PAM authentication will -# be allowed through the ChallengeResponseAuthentication and -# PasswordAuthentication. Depending on your PAM configuration, -# PAM authentication via ChallengeResponseAuthentication may bypass -# the setting of "PermitRootLogin without-password". -# If you just want the PAM account and session checks to run without -# PAM authentication, then enable this but set PasswordAuthentication -# and ChallengeResponseAuthentication to 'no'. -# WARNING: 'UsePAM no' is not supported in Red Hat Enterprise Linux and may cause several -# problems. -UsePAM yes - -#AllowAgentForwarding yes -#AllowTcpForwarding yes -#GatewayPorts no -X11Forwarding yes -#X11DisplayOffset 10 -#X11UseLocalhost yes -#PermitTTY yes -#PrintMotd yes -#PrintLastLog yes -#TCPKeepAlive yes -#UseLogin no -#UsePrivilegeSeparation sandbox -#PermitUserEnvironment no -#Compression delayed -#ClientAliveInterval 0 -#ClientAliveCountMax 3 -#ShowPatchLevel no -#UseDNS yes -#PidFile /var/run/sshd.pid -#MaxStartups 10:30:100 -#PermitTunnel no -#ChrootDirectory none -#VersionAddendum none - -# no default banner path -#Banner none - -# Accept locale-related environment variables -AcceptEnv LANG LC_CTYPE LC_NUMERIC LC_TIME LC_COLLATE LC_MONETARY LC_MESSAGES -AcceptEnv LC_PAPER LC_NAME LC_ADDRESS LC_TELEPHONE LC_MEASUREMENT -AcceptEnv LC_IDENTIFICATION LC_ALL LANGUAGE -AcceptEnv XMODIFIERS - -# override default of no subsystems -Subsystem sftp /usr/libexec/openssh/sftp-server - -# Example of overriding settings on a per-user basis -#Match User anoncvs -# X11Forwarding no -# AllowTcpForwarding no -# PermitTTY no -# ForceCommand cvs server diff --git a/site.yml b/site.yml deleted file mode 100644 index 84aa1b6..0000000 --- a/site.yml +++ /dev/null @@ -1,21 +0,0 @@ -site: - title: Local Preview - start_page: teleirc-sig::index -content: - sources: - - url: . - branches: HEAD - start_path: docs -ui: - bundle: - url: https://asamalik.fedorapeople.org/ui-bundle.zip - snapshot: true - default_layout: with_menu -output: - clean: true - dir: ./public - destinations: - - provider: archive -runtime: - pull: true - cache_dir: ./cache