Project has been moved to gitlab.com
liger1978 / mattermost Goto Github PK
View Code? Open in Web Editor NEWPuppet module for Mattermost
Home Page: https://forge.puppetlabs.com/liger1978/mattermost
Puppet module for Mattermost
Home Page: https://forge.puppetlabs.com/liger1978/mattermost
Project has been moved to gitlab.com
Hi,
it is not possible with your current setup in config.json.erb
set the override_options => EmailSettings => SMTPPort
.
When setting this value to 25
it's handled as an number and therefore saved w/o quotes in json. But mattermost expects string here.
Adding the quotes explicitly doesn't work as well, since then they are added twice.
Hello liger1978
I wanted to try your module and I had problems by configuring the SMTPPort in my manifest with the override_option. It seems that augeas wants to have a String there but the Data Type is Number if i want to configure port 25. Can you help me?
Output from error by puppet:
_Debug: Augeas/opt/mattermost-2.0.0/config/config.json: sending command 'set' with params ["/files/opt/mattermost-2.0.0/config/config.json/dict/entry[ . = 'EmailSettings']/dict/entry[ . = 'SMTPPort']", "SMTPPort"]
Debug: Augeas/opt/mattermost-2.0.0/config/config.json: sending command 'set' with params ["/files/opt/mattermost-2.0.0/config/config.json/dict/entry[ . = 'EmailSettings']/dict/entry[ . = 'SMTPPort']/number", "25"]
Debug: Augeas/opt/mattermost-2.0.0/config/config.json: /augeas/files/opt/mattermost-2.0.0/config/config.json/error/lens = /opt/puppetlabs/puppet/share/augeas/lenses/dist/json.aug:41.15-.56:
Debug: Augeas/opt/mattermost-2.0.0/config/config.json: /augeas/files/opt/mattermost-2.0.0/config/config.json/error/message = Failed to match
<>
with tree
{ "string" } { "number" = "25" }
Debug: Augeas/opt/mattermost-2.0.0/config/config.json: Closed the augeas connection
Error: /Stage[main]/Mattermost::Config/Augeas[/opt/mattermost-2.0.0/config/config.json]: Could not evaluate: Saving failed, see debug_
Thanks for this module. Running it on puppetserver 2.3.1 throws the following error which can be verified in init.pp.
Error: Could not retrieve catalog from remote server: Error 400 on SERVER: The parameter 'conf' is declared more than once in the parameter list at /etc/puppetlabs/code/environments/production/modules/mattermost/manifests/init.pp:16:3
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.