linting the project
This commit is contained in:
@@ -1,3 +0,0 @@
|
|||||||
all
|
|
||||||
rule 'MD013', :line_length => 1000
|
|
||||||
exclude_rule 'MD036'
|
|
||||||
110
.spelling
110
.spelling
@@ -1,110 +0,0 @@
|
|||||||
# markdown-spellcheck spelling configuration file
|
|
||||||
# Format - lines begining # are comments
|
|
||||||
# global dictionary is at the start, file overrides afterwards
|
|
||||||
# one word per line, to define a file override use ' - filename'
|
|
||||||
# where filename is relative to this configuration file
|
|
||||||
Readme.md
|
|
||||||
httpd
|
|
||||||
sudo
|
|
||||||
selinux
|
|
||||||
site.pp
|
|
||||||
nodes.pp
|
|
||||||
cd_apache
|
|
||||||
::
|
|
||||||
params
|
|
||||||
Foreman
|
|
||||||
cd_resources
|
|
||||||
CentOS
|
|
||||||
Puppet
|
|
||||||
ConfDroid
|
|
||||||
nagios
|
|
||||||
vHosts
|
|
||||||
vHost
|
|
||||||
phpMyAdmin
|
|
||||||
phpPgAdmin
|
|
||||||
parameterized
|
|
||||||
erb
|
|
||||||
Confdroid.com
|
|
||||||
UTF_Files
|
|
||||||
Elasticsearch
|
|
||||||
cd_firewall
|
|
||||||
puppetlabs
|
|
||||||
cd_elasticsearch
|
|
||||||
cd_fail2ban
|
|
||||||
Fail2Ban
|
|
||||||
intrusion
|
|
||||||
fail2ban
|
|
||||||
firewalld
|
|
||||||
prevention
|
|
||||||
management
|
|
||||||
CentOS7
|
|
||||||
auto-installed
|
|
||||||
filebeat
|
|
||||||
Elastic
|
|
||||||
installer
|
|
||||||
Foreman
|
|
||||||
postgresql
|
|
||||||
TLS
|
|
||||||
cd_foreman
|
|
||||||
install.sh
|
|
||||||
git
|
|
||||||
cd_git
|
|
||||||
Gitlab
|
|
||||||
gitlab
|
|
||||||
gitlab-ce
|
|
||||||
gitlab.rb
|
|
||||||
psql
|
|
||||||
setup
|
|
||||||
service
|
|
||||||
user
|
|
||||||
optional
|
|
||||||
postgresql
|
|
||||||
database
|
|
||||||
via
|
|
||||||
tls
|
|
||||||
encryption
|
|
||||||
certbot
|
|
||||||
cd_postgresql
|
|
||||||
cd_certbot
|
|
||||||
cd_gitlab
|
|
||||||
sourcecode
|
|
||||||
pg_hba.conf
|
|
||||||
hiera
|
|
||||||
cd_tls
|
|
||||||
ca_chain
|
|
||||||
config
|
|
||||||
gitlab-ctl
|
|
||||||
haproxy
|
|
||||||
cd_concat
|
|
||||||
concat
|
|
||||||
cd_haproxy
|
|
||||||
haproxy.cfg
|
|
||||||
fqdn
|
|
||||||
ACLs
|
|
||||||
contineous
|
|
||||||
Jenkinsfiles
|
|
||||||
Jenkinsfile
|
|
||||||
SEEDjob
|
|
||||||
Github
|
|
||||||
job-dsl
|
|
||||||
community
|
|
||||||
providing
|
|
||||||
API
|
|
||||||
REGEX
|
|
||||||
plugins
|
|
||||||
cd_jenkins
|
|
||||||
cd_java
|
|
||||||
cd_nagios
|
|
||||||
cd_kibana
|
|
||||||
Kibana
|
|
||||||
Elastic
|
|
||||||
Stack
|
|
||||||
elasticsearch
|
|
||||||
cd_kubernetes
|
|
||||||
Kubernetes
|
|
||||||
kubeadm
|
|
||||||
kubeadmin
|
|
||||||
kubecfg
|
|
||||||
Grafana
|
|
||||||
Alloy
|
|
||||||
params.pp
|
|
||||||
19
Jenkinsfile
vendored
19
Jenkinsfile
vendored
@@ -64,23 +64,6 @@ pipeline {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
stage('markdown-lint') {
|
|
||||||
steps {
|
|
||||||
sh '''
|
|
||||||
source /opt/rh/rh-ruby27/enable
|
|
||||||
mdl README.md
|
|
||||||
'''
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
stage('spell check') {
|
|
||||||
steps {
|
|
||||||
sh '''
|
|
||||||
mdspell -r -n -a "**/*.md"
|
|
||||||
'''
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
stage('SonarScan') {
|
stage('SonarScan') {
|
||||||
steps {
|
steps {
|
||||||
sh '''
|
sh '''
|
||||||
@@ -93,7 +76,7 @@ pipeline {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
stage('create Puppet documention') {
|
stage('create Puppet documentation') {
|
||||||
steps {
|
steps {
|
||||||
sh '/opt/puppetlabs/bin/puppet strings'
|
sh '/opt/puppetlabs/bin/puppet strings'
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -73,9 +73,6 @@ All files and directories are configured with correct selinux context. If selinu
|
|||||||
* `--no-arrow_alignment-check`: this check leads to actually not having am easily readable arrow alignment, as this checks `per block`, not per class.
|
* `--no-arrow_alignment-check`: this check leads to actually not having am easily readable arrow alignment, as this checks `per block`, not per class.
|
||||||
* Puppet Parser
|
* Puppet Parser
|
||||||
* ERB Template Parser
|
* ERB Template Parser
|
||||||
* Test for unwanted UTF8 files in the Puppet code (see tests/UTF_Files)
|
|
||||||
* Markdown-lint
|
|
||||||
* Spellcheck
|
|
||||||
* Sonar Quality Gate
|
* Sonar Quality Gate
|
||||||
|
|
||||||
## Contact Us
|
## Contact Us
|
||||||
|
|||||||
@@ -6,7 +6,5 @@
|
|||||||
class cd_alloy::main::config (
|
class cd_alloy::main::config (
|
||||||
|
|
||||||
) inherits cd_alloy::params {
|
) inherits cd_alloy::params {
|
||||||
|
|
||||||
include cd_alloy::main::service
|
include cd_alloy::main::service
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -6,18 +6,17 @@
|
|||||||
class cd_alloy::main::dirs (
|
class cd_alloy::main::dirs (
|
||||||
|
|
||||||
) inherits cd_alloy::params {
|
) inherits cd_alloy::params {
|
||||||
|
|
||||||
require cd_alloy::main::install
|
require cd_alloy::main::install
|
||||||
|
|
||||||
# main config dir
|
# main config dir
|
||||||
file { $ay_main_dir:
|
file { $ay_main_dir:
|
||||||
ensure => directory,
|
ensure => directory,
|
||||||
owner => 'root',
|
owner => 'root',
|
||||||
group => 'alloy',
|
group => 'alloy',
|
||||||
mode => '0770',
|
mode => '0770',
|
||||||
selrange => s0,
|
selrange => s0,
|
||||||
selrole => object_r,
|
selrole => object_r,
|
||||||
seltype => etc_t,
|
seltype => etc_t,
|
||||||
seluser => system_u,
|
seluser => system_u,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -6,23 +6,21 @@
|
|||||||
class cd_alloy::main::files (
|
class cd_alloy::main::files (
|
||||||
|
|
||||||
) inherits cd_alloy::params {
|
) inherits cd_alloy::params {
|
||||||
|
|
||||||
require cd_alloy::main::dirs
|
require cd_alloy::main::dirs
|
||||||
|
|
||||||
# Ensure log_targets is always an array
|
# Ensure log_targets is always an array
|
||||||
$log_targets_array = Array($cd_alloy::params::ay_log_targets, true)
|
$log_targets_array = Array($cd_alloy::params::ay_log_targets, true)
|
||||||
|
|
||||||
file { $ay_main_file:
|
file { $ay_main_file:
|
||||||
ensure => file,
|
ensure => file,
|
||||||
owner => 'root',
|
owner => 'root',
|
||||||
group => 'root',
|
group => 'root',
|
||||||
mode => '0644',
|
mode => '0644',
|
||||||
selrange => s0,
|
selrange => s0,
|
||||||
selrole => object_r,
|
selrole => object_r,
|
||||||
seltype => etc_t,
|
seltype => etc_t,
|
||||||
seluser => system_u,
|
seluser => system_u,
|
||||||
content => template('cd_alloy/config.alloy.erb'),
|
content => template('cd_alloy/config.alloy.erb'),
|
||||||
notify => Service[$ay_service],
|
notify => Service[$ay_service],
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,12 +1,11 @@
|
|||||||
## cd_alloy::main::install.pp
|
## cd_alloy::main::install.pp
|
||||||
# Module name: cd_alloy
|
# Module name: cd_alloy
|
||||||
# Author: Arne Teuke (arne_teuke@confdroid.com)
|
# Author: Arne Teuke (arne_teuke@confdroid.com)
|
||||||
# @summary Class manages module logic for the cd_alloy module
|
# @summary Class installs packages for the cd_alloy module
|
||||||
###############################################################################
|
###############################################################################
|
||||||
class cd_alloy::main::install (
|
class cd_alloy::main::install (
|
||||||
|
|
||||||
) inherits cd_alloy::params {
|
) inherits cd_alloy::params {
|
||||||
|
|
||||||
require cd_alloy::main::yumrepo
|
require cd_alloy::main::yumrepo
|
||||||
|
|
||||||
package { $reqpackages:
|
package { $reqpackages:
|
||||||
|
|||||||
@@ -6,13 +6,12 @@
|
|||||||
class cd_alloy::main::service (
|
class cd_alloy::main::service (
|
||||||
|
|
||||||
) inherits cd_alloy::params {
|
) inherits cd_alloy::params {
|
||||||
|
|
||||||
require cd_alloy::main::files
|
require cd_alloy::main::files
|
||||||
|
|
||||||
service { $ay_service:
|
service { $ay_service:
|
||||||
ensure => running,
|
ensure => running,
|
||||||
hasstatus => true,
|
hasstatus => true,
|
||||||
hasrestart => true,
|
hasrestart => true,
|
||||||
enable => true,
|
enable => true,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user