The module is apparently using ruby >=1.9 hash syntax which is not supported by 1.8 https://github.com/puppetlabs/puppetlabs-netscaler/blob/master/lib/puppet/util/network_device/transport/netscaler.rb#L12
Whoops. You are welcome to send a patch and change all the `url: url` to `:url => url` etc, or just upgrade your ruby to a non-EOL'd version and it should work. On Mon, Jul 13, 2015 at 2:41 PM Matthew Ceroni <[email protected]> wrote: > I am attempting to use the puppetlabs netscaler module to manage, well a > Citrix Netscaler :) > > I setup my /etc/puppet/device.conf on the puppet agent that will act as > the proxy: > > [usc1lb01] > type netscaler > url https://nsroot:[email protected]/nitro/v1 > > As a simple test I set my manifest as follows: > > node 'usc1lb01' { > netscaler_server [ 'server1': > ensure => present, > address => '1.10.1.1', > } > } > > I then ran puppet device -v --user=root and received the following error: > > Info: starting applying configuration to usc1lb01 at > https://10.191.2.8:443/nitro/v1 > Error: Could not run: > /var/lib/puppet/lib/puppet/util/network_device/transport/netscaler.rb:12: > syntax error, unexpected ':', expecting ')' > ...@connection = Faraday.new(url: url, ssl: { verify: false }) ... > ^ > /var/lib/puppet/lib/puppet/util/network_device/transport/netscaler.rb:12: > syntax error, unexpected ':', expecting '=' > ...n = Faraday.new(url: url, ssl: { verify: false }) do |builde... > ^ > /var/lib/puppet/lib/puppet/util/network_device/transport/netscaler.rb:12: > odd number list for Hash > ...y.new(url: url, ssl: { verify: false }) do |builder| > ^ > /var/lib/puppet/lib/puppet/util/network_device/transport/netscaler.rb:13: > syntax error, unexpected tSYMBEG, expecting kEND > builder.request :retry, { > ^ > /var/lib/puppet/lib/puppet/util/network_device/transport/netscaler.rb:127: > syntax error, unexpected kEND, expecting $end > > > Anyone have success with this module? > > > -- > You received this message because you are subscribed to the Google Groups > "Puppet Users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/puppet-users/CA%2BNsY5icYrZrW4TbYefskUndwSgiZP-PoSiJw9tMH%2BT19t1uzA%40mail.gmail.com > <https://groups.google.com/d/msgid/puppet-users/CA%2BNsY5icYrZrW4TbYefskUndwSgiZP-PoSiJw9tMH%2BT19t1uzA%40mail.gmail.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/CAJaQvGDGzhc8OwRAK6AqXCdkFMeRyHt64nqa5ZXRcoAwM9vzJw%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
