reallyenglish / ansible-role-sensu-server

Configures sensu-server
ISC License
1 stars 0 forks source link

Failure on installation #17

Open GloballyWarmDude opened 6 years ago

GloballyWarmDude commented 6 years ago

Can anyone help with with this. I'm trying to setup a Sensu server. This is a brand new Ubuntu 16.04 VM with nothing else installed. I keep running into this "gem" problem and I really do not understand what I need to do to fix it. The README talks about a "list of dict". It sounds to me like there's supposed to be some list of gems that the playbook is going to install. But I can't find that list anywhere.

Also the documentation is very unclear about how to define any required variables. It does provide a list of variables, but there is very little guidance about what values I need. Of course there is the distinct possibility that I am dumb as a brick. Here is the error I get when I run the playbook.

Any hand holding would be greatly appreciated. My boss would like me better too. I could even leap tall buildings in a single bound, I figure.


TASK [reallyenglish.sensu-server : Install or remove plugins] ** task path: /etc/ansible/roles/reallyenglish.sensu-server/tasks/plugins.yml:3 fatal: [sensu.bcricwh.lan]: FAILED! => {}

MSG:

The task includes an option with an undefined variable. The error was: 'ansible.utils.unsafe_proxy.AnsibleUnsafeText object' has no attribute 'name'

The error appears to have been in '/etc/ansible/roles/reallyenglish.sensu-server/tasks/plugins.yml': line 3, column 3, but may be elsewhere in the file depending on the exact syntax problem.

The offending line appears to be:

exception type: <class 'ansible.errors.AnsibleUndefinedVariable'> exception: 'ansible.utils.unsafe_proxy.AnsibleUnsafeText object' has no attribute 'name'

    to retry, use: --limit @/etc/ansible/sensu/sensu.retry

mitsururike commented 6 years ago

you do not need to define sensu_server_gems if you do not need any plugin. if you need to install plugins, define sensu_server_gems in your playbook as

sensu_server_gems:
  - name: sensu-plugins-foo
    state: present
  - name: sensu-plugins-bar
    state: present
GloballyWarmDude commented 6 years ago

I don't need any plugins. I am using the playbook as-is. All infant is a Sensu server but the playbook fails with the error message I posted.

Do you know why it is failing?

⁣J. Peter MacKay (604) 980-0303 Home (604) 908-3304 Cell​

On Mar 23, 2018, 1:15 AM, at 1:15 AM, mitsururike notifications@github.com wrote:

you do not need to define sensu_server_gems if you do not need any plugin. if you need to install plugins, define sensu_server_gems in your playbook as

sensu_server_gems:
 - name: sensu-plugins-foo
   state: present
 - name: sensu-plugins-bar
   state: present

-- You are receiving this because you authored the thread. Reply to this email directly or view it on GitHub: https://github.com/reallyenglish/ansible-role-sensu-server/issues/17#issuecomment-375575834

mitsururike commented 6 years ago

the role fails with an empty or undefined sensu_server_gems variable. a workaround is defining ensu_server_gems even if it is not needed.

GloballyWarmDude commented 6 years ago

Thanks bill try that in the morning.

Have you noticed that Sensu has taken away a lot of their web pages? 

Many of my attempts to install Sensu have failed because the site has so few downloadable components now.

I think this is a recent change.

⁣J. Peter MacKay (604) 980-0303 Home (604) 908-3304 Cell​

On Mar 26, 2018, 11:23 PM, at 11:23 PM, mitsururike notifications@github.com wrote:

the role fails with an empty or undefined sensu_server_gems variable. a workaround is defining ensu_server_gems even if it is not needed.

-- You are receiving this because you authored the thread. Reply to this email directly or view it on GitHub: https://github.com/reallyenglish/ansible-role-sensu-server/issues/17#issuecomment-376410869