Life long free software DevOps engineer, Geospatial NIX developer.
My CV: PDF
Ansible postgresql_tune module
License: Other
Life long free software DevOps engineer, Geospatial NIX developer.
My CV: PDF
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
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": ""}
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.