nexusis / puppet-mediawiki Goto Github PK
View Code? Open in Web Editor NEWThis project forked from martasd/puppet-mediawiki
This is a puppet module for deploying multi-tenant mediawiki
License: GNU General Public License v3.0
This project forked from martasd/puppet-mediawiki
This is a puppet module for deploying multi-tenant mediawiki
License: GNU General Public License v3.0
In my site.pp, I put
db_root_password => 'my awesome diceware password',
I got
Notice: /Stage[main]/Main/Node[hg-mediawiki.ncl.ac.uk]/Mediawiki::Instance[my_wiki1]/Exec[my_wiki1-install_script]/returns: Check the host, username and password and try again.
Error: /usr/bin/php install.php my_wiki1 admin --pass puppet --email [email protected] --server http://test-mediawiki --scriptpath /my_wiki1 --dbtype mysql --dbserver localhost --installdbuser root --installdbpass my awesome diceware password --dbname wiki1 --dbuser wiki1_user --dbpass super_long_password --db-prefix wk --confpath /etc/mediawiki/my_wiki1 --lang en returned 1 instead of one of [0]
Error: /Stage[main]/Main/Node[hg-mediawiki.ncl.ac.uk]/Mediawiki::Instance[my_wiki1]/Exec[my_wiki1-install_script]/returns: change from notrun to 0 failed: /usr/bin/php install.php my_wiki1 admin --pass puppet --email [email protected] --server http://test-mediawiki --scriptpath /my_wiki1 --dbtype mysql --dbserver localhost --installdbuser root --installdbpass my awesome diceware password --dbname wiki1 --dbuser wiki1_user --dbpass super_long_password --db-prefix wk --confpath /etc/mediawiki/my_wiki1 --lang en returned 1 instead of one of [0];
When I replaced with
db_root_password => 'my.awesome.diceware.password',
the wiki installed as expected.
https://docs.puppet.com/puppet/latest/reference/modules_fundamentals.html#example explains that the module name, folder name, and manifests/init.pp class name must all be identical. When I download the module from Puppet Forge, the directory name I get is nexusis_mediawiki instead of mediawiki. This stops the module from working, but renaming the directory to mediawiki stops puppet module from managing the module. A workaround is to symlink the directory name to the class name as follows:
cd /etc/puppetlabs/code/environments/production/modules
ln -s nexusis_mediawiki/ mediawiki
however, the proper solution is to change the directory name in this repo.
In instance.pp, having the $smtp_*
variables unset didn't work with my Puppet 4 installation, giving:
Error: Could not retrieve catalog from remote server: Error 400 on SERVER: Evaluation Error: Error while evaluating a Resource Statement, Mediawiki::Instance[my_wiki1]:
expects a value for parameter 'smtp_auth'
and similar lines. Making all those entries be false (without quotes) fixed it. I am currently finding out whether I am allowed to publish patches written at work: if I am, I'll submit one.
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.