Giter VIP home page Giter VIP logo

kitchen-wpar's Introduction

Kitchen::Wpar

A Test Kitchen Driver for Wpar.

Requirements

You need a AIX partition with chef client and sudo installed.

Installation and Setup

Please read the Driver usage page for more details.

Configuration

TODO: Write descriptions of all configuration options

  • wpar_name wpar name on AIX global system. Default to kitchenwpar.
  • aix_host aix global partition name. Default to localhost.
  • aix_user aix global partition username. Default to root.
  • aix_key Specify a path to the ssh key to create a connection.
  • wpar_address wpar IP address to use. Not needed if an entry already exists in /etc/hosts on Global partition.
  • wpar_vg Volume group to use to store shared wpar filesystems. Default to rootvg.
  • wpar_rootvg Specify the hdisk to use to create a rootvg system wpar.
  • wpar_mksysb uses a wpar backup. Specify a path to a backup to save time.
  • wpar_copy_rootvg adds the option ' -t' to copy rootvg file systems.
  • isVersioned create a versioned wpar. Used only with wpar_mksysb.
  • isWritable adds the option ' -l' to have a non-shared, writable /usr file system and /opt file system.
  • share_network_resolution adds the option ' -r' to share name resolution services (i.e. /etc/resolv.conf) with the wpar.
  • sudo path to sudo command in case we need it.
  • ssh_port Lets you specify the ssh port to use. Default to 22.

require_chef_omnibus

Determines whether or not a Chef Omnibus package will be installed. There are several different behaviors available:

  • true - the latest release will be installed. Subsequent converges will skip re-installing if chef is present.
  • latest - the latest release will be installed. Subsequent converges will always re-install even if chef is present.
  • <VERSION_STRING> (ex: 10.24.0) - the desired version string will be passed the install.sh script. Subsequent converges will skip if the installed version and the desired version match.
  • false or nil - no chef is installed.

The default value is unset, or nil. Should be false if your AIX system has no internet access.

Development

Pull requests are very welcome! Make sure your patches are well tested. Ideally create a topic branch for every separate change you make. For example:

  1. Fork the repo
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Added some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

Authors

Created and maintained by Alain Dejoux ([email protected])

License

Apache 2.0 (see LICENSE)

kitchen-wpar's People

Contributors

adejoux avatar aklyachkin avatar artxyz avatar kareiva avatar lpmi-13 avatar rogierjobse avatar ryanfrantz avatar tamalerhino avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

kitchen-wpar's Issues

asking for roots password

When I ran kitchen create with this configuration in kitchen.yml

driver:
  name: wpar
  aix_host: localhost
  aix_user: root
  wpar_address: 10.10.10.10
  share_network_resolution: true

Kitchen is asking for password for root user

(base) macC02DFGDSS:aix takeatu$ kitchen create
-----> Starting Test Kitchen (v3.0.0)
-----> Creating <default-wpar>...
/Users/takeatu/.chefdk/gem/ruby/3.0.0/gems/kitchen-wpar-0.4.4/lib/kitchen/driver/wpar.rb:228:in `ssh_command': Passing nil, or [nil] to Net::SSH.start is deprecated for keys: keys
root@localhost's password:

test-kitchen-3.0.0 conflicts with test-kitchen (~> 1.4)

E, [2021-08-24T16:01:02.415340 #41806] ERROR -- Kitchen: Class: Gem::ConflictError
E, [2021-08-24T16:01:02.415352 #41806] ERROR -- Kitchen: Message: Unable to activate kitchen-wpar-0.4.2, because test-kitchen-3.0.0 conflicts with test-kitchen (~> 1.4)

ssh port

Im trying to find a way to change the default SSH port to a different port ie from 22 to 2200

Change Option "-C" from usage of Backup

I would either remove the option "-C" from
cmd += " -C -B #{config[:wpar_mksysb]}"

or add the Option to add the "C".

A Backup with "-B" should still be usable without "-C"

WPAR Destroy is missing

Seems wpar destroy is missing ..
could you check below statement ?
def destroy(state) is missing

Add Travis Test Integration

It would be great to add the following additions

  • Travis Test integration of the ruby tests

  • Travis Test Link in the README.md

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.