- Overview
- Module Description - What the module does and why it is useful
- Setup - The basics of getting started with lxca
- Usage - Configuration options and additional functionality
- Reference - An under-the-hood peek at what the module is doing and how
- Limitations - OS compatibility, etc.
- Development - Guide for contributing to the module
lxca module is used to interact with Lenovo XClarity™ Administrator resources through implemented puppet types.
Lenovo XClarity™ Administrator is a centralized resource management solution that is aimed at reducing complexity, speeding response, and enhancing the availability of Lenovo® server systems and solutions. Using the lxca module, you can interact with the LXCA resources such as nodes, chassis, cmms etc...
In this supported functionality are:
- Listing of all nodes
- Listing of managed nodes
- Listing of unmanaged nodes
- Listing and filtering of nodes using a chassis
- Listing and filtering of nodes using a uuid
- Power on node
- Power off node
- Power restart node
- Blink LOC LED
- Turn on LOC LED
- Turn off LOC LED
- Listing of all chassis
- Listing of managed chassis
- Listing of unmanaged chassis
- Listing and filtering of chassis using a uuid
Once the lxca module becomes a part of the Puppet Forge, it can be installed using the command: puppet module install lxca
Till then, download the entire contents of this repository to the directory /etc/puppetlabs/code/modules/lxca on the Puppet server
In the current implementation, LXCA can interact with the following LXCA resources:
- Node
- Chassis
The lxca module needs xclarity_client gem to be installed.
There are types and the respective providers have been implemented - lxca_node, lxca_chassis, lxca_resource ...
lxca_nodes accepts the following ensurable methods: discover_all, discover_managed, discover_unmanaged, filter_by_chassis, filter_by_uuid, power_on, power_off, power_restart, blink_led, turn_on_led, turn_off_led
lxca_chassis accepts the following ensurable methods: discover_all, discover_managed, discover_unmanaged, filter_by_uuid
lxca_resource is a placeholder for ffdc events and other operations that does not logically fall under any resource and is more of a property of the whole LXCA. This will be implemented as requirements are encountered.
A sample manifest is provided below that demonstrates the usage of lxca_node and lxca_chassis:
lxca_node{'list_all':
base_url => 'https://10.243.10.75',
login_user => 'Admin',
login_password => 'Lenovo123',
verify_ssl => 'NONE',
ensure => 'discover_all',
}
lxca_node{'blink_led':
base_url => 'https://10.243.10.75',
login_user => 'Admin',
login_password => 'Lenovo123',
verify_ssl => 'NONE',
ensure => 'turn_on_led',
uuid => 'FA59C0BBC43C3C15B9D72B94AFF52B91',
}
lxca_chassis{'list_managed':
base_url => 'https://10.243.10.75',
login_user => 'Admin',
login_password => 'Lenovo123',
verify_ssl => 'NONE',
ensure => 'discover_managed',
}
lxca_chassis{'filter_by_uuid':
base_url => 'https://10.243.10.75',
login_user => 'Admin',
login_password => 'Lenovo123',
verify_ssl => 'NONE',
ensure => 'filter_by_uuid',
uuid => 'F44E92339683385A8D97CD6348A6F45F',
}
Copyright (C) 2018 Lenovo, Inc. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.