Skip to content
master
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
lib
 
 
 
 

README.md

Hostgroup extra validator (foreman plugin)

This is a foreman plugin that adds a new validator for hostgroups so that you can customize it with a regular expression.

Installation:

Add to bundler.d/Gemfile.local.rb as:

gem 'hostgroup_extra_validator', :git => 'https://github.com/cernops/hostgroup_extra_validator_foreman.git'

then update & restart Foreman:

bundle update

Usage:

Add to your Foreman config/settings.yaml:

:hostgroup_name_regex: \A[a-z][a-z0-9_]*\Z

Quotes or backslashes around the regex are not needed.

Copyright

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.

About

hostgroup_extra_validator_foreman

Resources

Releases

No releases published

Languages

You can’t perform that action at this time.