-
-
Notifications
You must be signed in to change notification settings - Fork 229
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Syntax error at '{'; expected '}' at /etc/puppet/modules/zabbix/manifests/server.pp:340 on node zabbix #115
Comments
Hi, Thank you for making time to create this issue.
This part is used on the following files:
You could edit the files, so it would like this:
|
That resolved the issue. Thank you for your quick response. [root@zabbix ~]# puppet module install wdijkerman-zabbix
Preparing to install into /etc/puppet/modules ...
Downloading from http://forge.puppetlabs.com ...
Installing -- do not interrupt ...
/etc/puppet/modules
└── wdijkerman-zabbix (v1.6.0)
[root@zabbix ~]# ls
anaconda-ks.cfg install.log install.log.syslog zabbix.pp
[root@zabbix ~]# puppet apply zabbix.pp
Syntax error at '{'; expected '}' at /etc/puppet/modules/zabbix/manifests/server.pp:340 on node zabbix
[root@zabbix ~]# cd /etc/puppet/modules/zabbix/manifests/
[root@zabbix manifests]# grep 'unless defined' *.pp
agent.pp: unless defined(Class['Zabbix::Repo']) {
javagateway.pp: unless defined(Class['Zabbix::Repo']) {
proxy.pp: unless defined(Class['Zabbix::Repo']) {
server.pp: unless defined(Class['Zabbix::Repo']) {
web.pp: unless defined(Class['Zabbix::Repo']) {
[root@zabbix manifests]#
[root@zabbix manifests]# sed -i 's/unless defined(/if ! defined(/g' *.pp
[root@zabbix manifests]# grep 'if ! defined' *.pp
agent.pp: if ! defined(Class['Zabbix::Repo']) {
javagateway.pp: if ! defined(Class['Zabbix::Repo']) {
proxy.pp: if ! defined(Class['Zabbix::Repo']) {
server.pp: if ! defined(Class['Zabbix::Repo']) {
web.pp: if ! defined(Class['Zabbix::Repo']) {
[root@zabbix manifests]# cd /vagrant
[root@zabbix vagrant]# puppet apply zabbix.pp
notice: /Stage[main]/Zabbix::Web/File[/etc/zabbix/web]/owner: owner changed 'apache' to 'zabbix'
notice: /Stage[main]/Zabbix::Web/File[/etc/zabbix/web]/group: group changed 'apache' to 'zabbix'
notice: /Stage[main]/Zabbix::Web/File[/etc/zabbix/web]/mode: mode changed '0750' to '0755'
notice: /Stage[main]/Apache/Apache::Vhost[default]/Concat[15-default.conf]/File[15-default.conf]/ensure: defined content as '{md5}5848ba87051ecdbfd5031b5c530b5c7e'
notice: /Stage[main]/Apache::Service/Service[httpd]: Triggered 'refresh' from 1 events
notice: Finished catalog run in 3.33 seconds
[root@zabbix vagrant]# puppet apply zabbix.pp
notice: Finished catalog run in 2.67 seconds
[root@zabbix vagrant]# |
Please be aware that you should make the same change when you install an newer version of the module on your environment. "Unless" ;-) you upgrade your puppet.. |
After installing the 1.6.0 version of the module, I'm getting a syntax error in server.pp on line 340. I'm not doing anything special, just the bare minimum configuration. The same config works in version 1.5.0 of the module.
Environment Information.
Puppet Module
Here is the error I'm receiving. As you can see, the same actions work in version 1.5.0.
The text was updated successfully, but these errors were encountered: