Giter VIP home page Giter VIP logo

ansible-postgresql_tune's Introduction

ansible-postgresql_tune's People

Contributors

imincik avatar josephramsay avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

ansible-postgresql_tune's Issues

max_connections required?

When playing with ansible pg tune I got following error:

fatal: [gislab_vagrant]: FAILED! => {"changed": false, "failed": true,
"msg": "missing required arguments: max_connections"}

In documentation (1) is set max_connections param only for PG 9.1 (but, even in the vars, version 9.6 is mentioned). The ansible playbook was run against PG 9.5. It's not clear when max_connection is required (2).

(1) https://github.com/imincik/ansible-postgresql_tune#postgres-91-with-changes-to-kernel-shm-settings-and-setting-a-max_connections
(2) https://github.com/imincik/ansible-postgresql_tune#postgresql-96

Missing parentheses in call to 'print'

Looks like a python3 print() problem

An exception occurred during task execution. To see the full traceback, use -vvv. The error was: SyntaxError: Missing parentheses in call to 'print'
fatal: [aims-db]: FAILED! => {"failed": true, "msg": "Unexpected failure during module execution.", "stdout": ""}

sysctl_file required?

When playing with ansible pg tune I got following error:

fatal: [gislab_vagrant]: FAILED! => {"changed": false, "failed": true,
"module_stderr": "Shared connection to 127.0.0.1 closed.\r\n",
"module_stdout": "Traceback (most recent call last):\r\n  File
\"/tmp/ansible_p6EVdJ/ansible_module_postgresql_tune.py\", line 374,
in <module>\r\n    main()\r\n  File
\"/tmp/ansible_p6EVdJ/ansible_module_postgresql_tune.py\", line 369,
in main\r\n    has_changed, config = tune(module.params)\r\n  File
\"/tmp/ansible_p6EVdJ/ansible_module_postgresql_tune.py\", line 332,
in tune\r\n    with open(data[\"sysctl_file\"], 'w') as
confile:\r\nTypeError: coercing to Unicode: need string or buffer,
NoneType found\r\n", "msg": "MODULE FAILURE", "rc": 0}

In documentation (1) is set sysctl_file param only for PG 9.1 (but, even in the vars, version 9.6 is mentioned). The ansible playbook was run against PG 9.5. It's not clear when sysctl_file is required (2).

See probably related #5.

(1) https://github.com/imincik/ansible-postgresql_tune#postgres-91-with-changes-to-kernel-shm-settings-and-setting-a-max_connections
(2) https://github.com/imincik/ansible-postgresql_tune#postgresql-96

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.