theforeman / foreman_host_rundeck

API for Rundeck to pull host data from Foreman
GNU General Public License v3.0
12 stars 11 forks source link

Hostgroup does not appear to be output #12

Open anthonysomerset opened 9 years ago

anthonysomerset commented 9 years ago

I am attempting to get the hostgroup out using the rundeck format

output i get is similar to:

  description: ''
  hostname: somerserver.liquidtelecom.com
  nodename: somerserver.liquidtelecom.com
  Environment: production
  osArch: x86_64
  osFamily: Debian
  osName: Ubuntu
  osVersion: '14.04'
  tags:
  - class=apt
  - class=apt::repo::puppetlabs
  - class=basepackages
  - class=hosts
  - class=monitoring
  - class=monitoring::userparameters::remoteping
  - class=monitoring::userparameters::zabbixmysql
  - class=mysql::server
  - class=ntp
  - class=openssl
  - class=puppet
  - class=resolver
  - class=screenfetch
  - class=snmp
  - class=ssh
  - class=sudo
  - class=timezone
  - class=vmwaretools
  - class=zabbix::agent
  - class=zabbix::proxy
  - class=zol::repo::zabbix_24
  - domain=liquidtelecom.com
  username: root
snobear commented 8 years ago

I have the same issue. Running Foreman 1.9.3 on CentOS 6.7 and I installed the plugin with yum install ruby193-rubygem-foreman_host_rundeck.

I see that the gem on my system at /opt/rh/ruby193/root/usr/share/gems/gems/foreman_host_rundeck-0.0.2/app/services/rundeck_formatter.rb is older/differs from the one currently in master at https://github.com/theforeman/foreman_host_rundeck/blob/master/app/services/rundeck_formatter.rb, which has the hostgroup included.

I also tried adding a global parameter in Foreman for all possible options:

rundeckfacts=hostgroup,hostgroup_fullname,hostgroup_title

but no luck.

@domcleal does the current master reflect whats available in the 1.10+ plugin, or has it yet to be released?

domcleal commented 8 years ago

I don't maintain the plugin, @orrabin does. It looks like it hasn't been released since the merge of #10, which adds the host group.

orrabin commented 8 years ago

@anthonysomerset, @snobear I pushed a new version for the gem to include the hostgroup addition.

anthonysomerset commented 8 years ago

I'm running on the deb installed version via foreman - i think i need @domcleal to update the deb first for me to see