Code Monkey home page Code Monkey logo

playground's People

Contributors

d7oc avatar enbrnz avatar jamu85 avatar pvince81 avatar xoxys avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

playground's Issues

Documentation missing & restructure

Restructure:

  • remove distribution references from inventories, to avoid confusion
  • rename ubuntu-minimal to minimal
  • find other uses for other inventories, e.g suse to wnd-example

Documentation

  • clearly state that this an example repo
  • explain the different inventories their goal and usage

These PRs, please change them into PRs on docs:
#7
#8
#11

Let me know if you need help with that.

"mariadb : Ensure MariaDB users are present" failed

we are using ubuntu-minimal on:
ubuntu 22.04
php reverted to 7.4. a
mariadb 10.6.12

TASK [mariadb : Ensure MariaDB users are present]

failed: [db1] (item=owncloud) => {"ansible_loop_var": "item", "changed": false, "item": {"host": "localhost", "name": "owncloud", "password": "owncloud", "priv": "owncloud.:ALL"}, "msg": "Error granting privileges, invalid priv string: ALL , params: ('', 'localhost'), query: GRANT ALL ON *****. TO %s@%s , exception: (1044, "Access denied for user 'root'@'localhost' to database '***'")."}

We fixed it by adding state = present to database.yml inside of the inventory

"Get list of hosts for the root user" failed

we are using ubuntu-minimal on:
ubuntu 22.04
php reverted to 7.4.
mariadb 10.6.12

TASK [mariadb : Get list of hosts for the root user]

fatal: [db1]: FAILED! => {"changed": false, "cmd": ["/usr/bin/mysql", "-NBe", "SELECT Host FROM mysql.user WHERE User = 'root' ORDER BY (Host='localhost') ASC"], "delta": "0:00:00.012417", "end": "2023-02-28 15:25:21.588737", "msg": "non-zero return code", "rc": 1, "start": "2023-02-28 15:25:21.576320", "stderr": "ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)", "stderr_lines": ["ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)"], "stdout": "", "stdout_lines": []}

We worked around it by setting the root password for mariadb to empty.

Support fact cache for faster deployment and testing

With #1 I've added the following config file locally ansible.cfg:

[defaults]
fact_caching = jsonfile
fact_caching_connection = /tmp/ansible-facts
fact_caching_timeout = 86400

I did see in the log that this is being used.

However after provisioning there are no mentions of Apache or PHP inside the cached JSON files.
And the only mention of ownCloud is for bits of config.php.

So the provisioning is still very slow. This is cumbersome when testing configurations settings as it takes a while to get results.

@xoxys

"mariadb : Ensure dependencies are installed" failed

we are using ubuntu-minimal on:
ubuntu 22.04
php reverted to 7.4.
mariadb 10.6.12

TASK [mariadb : Ensure dependencies are installed]

failed: [db1] (item=centos-release-scl) => {"ansible_loop_var": "item", "changed": false, "item": "centos-release-scl", "msg": "No package matching 'centos-release-scl' is available"}

removing centos-release-scl from database.yml seems to fix this issue

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.