Code Monkey home page Code Monkey logo

vmware-vcsa's Introduction

VMware has ended active development of this project, this repository will no longer be updated.

VMware vCSA module

Build Status

This module initializes and manages VMware vCenter Server Appliance (vCSA).

Description

VMware vCenter Server Appliance does not include or support puppet agent. The module manages vCSA through an intermediate host running puppet. The management host connects to vCSA via ssh to perform the initialization and configuration:

+------------+         +-------+
|            |   ssh   | vCSA  |
|   Puppet   | +-----> +-------+
| Management |   |
|    Host    |   |     +-------+
|            |    ---> | vCSA  |
+------------+         +-------+

A single management host can support any number of vCSA as long it has connectivity to the appliances.

Installation

$ puppet module install vmware/vcsa

Usage

Deploy vCSA image to ESX (via ovftool). The following manifest will initialize and configure the appliance with embedded database and sso:

vcsa { 'test':
  username => 'root',
  password => 'vmware',
  server   => '192.168.1.10',
  db_type  => 'embedded',
  capacity => 'm',
}

See init.pp for additional options, and 'vpxd_servicecfg help' for additional information.

Known Issues

In vCSA version 5.5 sshd_config MaxSessions needs to be increased above the default value of 1 due to net-ssh opening multiple channels when invoking ssh.exec!

vmware-vcsa's People

Contributors

dstefka avatar harrypan avatar jakerobinson avatar maniacmurphy avatar mgarfias avatar nanliu avatar rzenker avatar sholland avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

vmware-vcsa's Issues

VCSA 5.5 SSH MaxSessions

When applying initial configuration to a new 5.5 VCSA, puppet will fail with the error:

Error: /Stage[main]//Vcsa[demo]/Vcsa_eula[demo]/ensure: change from absent to present failed: Could not set 'present' on ensure: open failed (1) at 53:/etc/puppetlabs/puppet/modules/vcsa/manifests/init.pp

This is due to the MaxSessions 1 setting in /etc/ssh/sshd_config. As a workaround, you can remove this line or change to MaxSessions 10.

Additionally, an issue is documented for the net-ssh library to handle non-multiplexed SSH sessions: net-ssh/net-ssh#121

Invalid Resource Type vcsa

I'm running Puppet Enterprise version 3.4.3 on Ubunto 12.04.4; trying to configure VMware vCSA version 5.5.0.10000 Build 1624811; modules and dependencies installed using the: puppet module install vmware-vcsa, data.pp customised for my appliance, appliance reachable via its webserver, not initialised yet, waiting for eula acceptance etc.

The error message I am getting when running: puppet apply init.pp

Error: Puppet::Parser::AST::Resource failed with error ArgumentError: Invalid resource type vcsa at /home/puppet-admin/.puppet/modules/vcsa/tests/init.pp:10 on node puppet.contoso.com
Wrapped exception:

When running the same command with the --trace parameter there is a lot in the output but the below stands out in reference to the above error:

/opt/puppet/lib/ruby/site_ruby/1.9.1/puppet/util/command_line.rb:137:in run' /opt/puppet/lib/ruby/site_ruby/1.9.1/puppet/util/command_line.rb:91:inexecute'
/opt/puppet/bin/puppet:4:in `

'
Wrapped exception: Invalid resource type vcsa

/opt/puppet/lib/ruby/site_ruby/1.9.1/puppet/util/command_line.rb:137:in run' /opt/puppet/lib/ruby/site_ruby/1.9.1/puppet/util/command_line.rb:91:inexecute'
/opt/puppet/bin/puppet:4:in `

'
Error: Puppet::Parser::AST::Resource failed with error ArgumentError: Invalid resource type vcsa at /home/puppet-admin/.puppet/modules/vcsa/tests/init.pp:10

Is this an issue or given the above, is there anything wonky with my setup?

Many Thanks
Andy

Ciphers

Known-Issues

sshd_config - you also need to add a cbc cipher for Net::SSH to work.

i.e. add blowfish-cbc to the Ciphers in sshd_config and restart sshd.

Getting undefined method `path' for nil:NilClass

Hi,
I'm trying to test the module but this is what I get:

Could not autoload puppet/type/vcsa_eula: Could not autoload puppet/provider/vcsa_eula/default: undefined method `path' for nil:NilClass

Depending on the run I get the same message for all the other vcsa providers, vcsa_db, vcsa_sso, vcsa_java, vcsa_service.

Puppet version is 3.1.0 on both the master and agent. Master us Ubuntu 12.04 and agent is SLES 11 (VMware Management Assistant).

Cheers,
Atha

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.