Re: [Puppet Users] vmware-vcsa module !!!

2014-10-08 Thread Rakesh Kathpal
Nan.. Thanks a lot for your help.

On Wed, Oct 8, 2014 at 8:08 PM, Nan Liu  wrote:

> On Wed, Oct 8, 2014 at 1:49 AM, Rakesh Kathpal  wrote:
>
>> I have a esx host installed and a standalone centos server.
>>
>> what I am trying to do is via foreman
>>
>> - Setting up the module for centos server
>> - So that it can install vcsa on my esx server.
>>
>> I end up getting error as
>>
>> Info: Applying configuration version '1412754558'
>> Debug: PuppetX::Puppetlabs::Transport::Ssh initializing connection to:
>> 192.168.1.26
>> Debug: Executing on 192.168.1.26:
>> vpxd_servicecfg eula read
>> Debug: Execution result:
>> sh: vpxd_servicecfg: not found
>>
>> Error: /Stage[main]/Vcsas/Vcsa[demo]/Vcsa_eula[demo]: Could not evaluate:
>> odd number of arguments for Hash
>> /var/lib/puppet/lib/puppet/provider/vcsa_eula/default.rb:15:in `[]'
>> /var/lib/puppet/lib/puppet/provider/vcsa_eula/default.rb:15:in `exists?'
>> /usr/lib/ruby/vendor_ruby/puppet/property/ensure.rb:81:in `retrieve'
>>
>>
>> Please node this is a vanilla esx server, do I need to do anything else
>> before applying the module..
>>
>
> The module is intended to run against a vcenter server appliance (5.0-5.5
> versions), not an ESX server. You will need to use ovftool or other means
> to import the appliance first. vpxd_servicecfg is a command that should be
> available on the vcenter appliance. There's also an outstanding issue with
> 5.5 related to a sshd setting, there's more info here:
> https://github.com/vmware/vmware-vcsa/issues/19
>
> HTH,
>
> Nan
>
> --
> 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 puppet-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/puppet-users/CACqVBqDpgMBpGO3dn2Vg8ER%2B_rfPu6ZiFLwa2J3ZnuO60XxvjA%40mail.gmail.com
> 
> .
>
> 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 puppet-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/CAEJrXMX8ejR1pZf_PA2jLBMak-N2zOZnY7TXUupPRz2qdOrCxw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Puppet Users] vmware-vcsa module !!!

2014-10-08 Thread Nan Liu
On Wed, Oct 8, 2014 at 1:49 AM, Rakesh Kathpal  wrote:

> I have a esx host installed and a standalone centos server.
>
> what I am trying to do is via foreman
>
> - Setting up the module for centos server
> - So that it can install vcsa on my esx server.
>
> I end up getting error as
>
> Info: Applying configuration version '1412754558'
> Debug: PuppetX::Puppetlabs::Transport::Ssh initializing connection to:
> 192.168.1.26
> Debug: Executing on 192.168.1.26:
> vpxd_servicecfg eula read
> Debug: Execution result:
> sh: vpxd_servicecfg: not found
>
> Error: /Stage[main]/Vcsas/Vcsa[demo]/Vcsa_eula[demo]: Could not evaluate:
> odd number of arguments for Hash
> /var/lib/puppet/lib/puppet/provider/vcsa_eula/default.rb:15:in `[]'
> /var/lib/puppet/lib/puppet/provider/vcsa_eula/default.rb:15:in `exists?'
> /usr/lib/ruby/vendor_ruby/puppet/property/ensure.rb:81:in `retrieve'
>
>
> Please node this is a vanilla esx server, do I need to do anything else
> before applying the module..
>

The module is intended to run against a vcenter server appliance (5.0-5.5
versions), not an ESX server. You will need to use ovftool or other means
to import the appliance first. vpxd_servicecfg is a command that should be
available on the vcenter appliance. There's also an outstanding issue with
5.5 related to a sshd setting, there's more info here:
https://github.com/vmware/vmware-vcsa/issues/19

HTH,

Nan

-- 
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 puppet-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/CACqVBqDpgMBpGO3dn2Vg8ER%2B_rfPu6ZiFLwa2J3ZnuO60XxvjA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Puppet Users] vmware-vcsa module !!!

2014-10-08 Thread Rakesh Kathpal
I am using the module https://forge.puppetlabs.com/vmware/vcsa

Hv just added the following to the end of init.pp so that I can use this
"define" as a class

class vcsas($user_data) {
  create_resources('vcsa',$user_data)
}

>From foreman I am passing the following parameters

demo:
  username: root
  password: vmware
  server: 192.168.1.26
  db_type: embedded
  capacity: m


On Wed, Oct 8, 2014 at 6:25 PM, Brian Morris 
wrote:

> Hello Rakesh,
>
> Please post your code that this error comes from.
>
> --
> 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 puppet-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/puppet-users/c56382ed-2573-4f31-ab89-e60a08b010a3%40googlegroups.com
> .
> 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 puppet-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/CAEJrXMU0zvob3uJCyi-cOkr%2BswnQn8Rh6v0SwH0tBxbp0zjxyg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


[Puppet Users] vmware-vcsa module !!!

2014-10-08 Thread Brian Morris
Hello Rakesh,

Please post your code that this error comes from.

-- 
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 puppet-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/c56382ed-2573-4f31-ab89-e60a08b010a3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[Puppet Users] vmware-vcsa module !!!

2014-10-08 Thread Rakesh Kathpal
I have a esx host installed and a standalone centos server.

what I am trying to do is via foreman

- Setting up the module for centos server
- So that it can install vcsa on my esx server.

I end up getting error as

Info: Applying configuration version '1412754558'
Debug: PuppetX::Puppetlabs::Transport::Ssh initializing connection to:
192.168.1.26
Debug: Executing on 192.168.1.26:
vpxd_servicecfg eula read
Debug: Execution result:
sh: vpxd_servicecfg: not found

Error: /Stage[main]/Vcsas/Vcsa[demo]/Vcsa_eula[demo]: Could not evaluate:
odd number of arguments for Hash
/var/lib/puppet/lib/puppet/provider/vcsa_eula/default.rb:15:in `[]'
/var/lib/puppet/lib/puppet/provider/vcsa_eula/default.rb:15:in `exists?'
/usr/lib/ruby/vendor_ruby/puppet/property/ensure.rb:81:in `retrieve'


Please node this is a vanilla esx server, do I need to do anything else
before applying the module..

any help is greatly appreciated.

Thanks,

Rakesh K.

-- 
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 puppet-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/CAEJrXMX448TuwbK7yS6ZayP-%2BLv6SUAYB_JmsSajWBt0Cq8piQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.