Commit 3eb9883e authored by Fabien Combernous's avatar Fabien Combernous

Merge branch '32-remove-selinux-from-module-code' into 'master'

Resolve "remove selinux from module code"

Closes #32

See merge request adullact/puppet-freeipa!33
parents 26e7cd1e 91323e02
......@@ -122,7 +122,7 @@ Style/RedundantSelf:
Enabled: True
Style/WhileUntilModifier:
Enabled: True
Naming/AccessorMethodName:
Style/AccessorMethodName:
Enabled: True
Style/AsciiComments:
Enabled: True
......@@ -134,7 +134,7 @@ Style/CaseEquality:
Enabled: True
Style/CharacterLiteral:
Enabled: True
Naming/ClassAndModuleCamelCase:
Style/ClassAndModuleCamelCase:
Enabled: True
Style/ClassAndModuleChildren:
Enabled: False
......@@ -156,7 +156,7 @@ Style/ColonMethodCall:
Enabled: True
Style/CommentAnnotation:
Enabled: True
Naming/ConstantName:
Style/ConstantName:
Enabled: True
Style/Documentation:
Enabled: False
......@@ -180,10 +180,6 @@ Style/StringLiterals:
Enabled: True
Style/TrailingCommaInArguments:
Enabled: True
Style/TrailingCommaInArrayLiteral:
Enabled: True
Style/TrailingCommaInHashLiteral:
Enabled: True
Style/GlobalVars:
Enabled: True
Style/GuardClause:
......@@ -210,19 +206,19 @@ Style/UnlessElse:
Enabled: True
Style/VariableInterpolation:
Enabled: True
Naming/VariableName:
Style/VariableName:
Enabled: True
Style/WhileUntilDo:
Enabled: True
Style/EvenOdd:
Enabled: True
Naming/FileName:
Style/FileName:
Enabled: True
Style/For:
Enabled: True
Style/Lambda:
Enabled: True
Naming/MethodName:
Style/MethodName:
Enabled: True
Style/MultilineTernaryOperator:
Enabled: True
......@@ -246,15 +242,13 @@ Style/NumericLiterals:
Enabled: True
Style/OneLineConditional:
Enabled: True
Naming/BinaryOperatorParameterName:
Enabled: True
Style/ParenthesesAroundCondition:
Enabled: True
Style/PercentLiteralDelimiters:
Enabled: True
Style/PerlBackrefs:
Enabled: True
Naming/PredicateName:
Style/PredicateName:
Enabled: True
Style/RedundantException:
Enabled: True
......@@ -279,7 +273,7 @@ Style/Encoding:
Enabled: True
Style/BlockDelimiters:
Enabled: True
Layout/ConditionPosition:
Lint/ConditionPosition:
Enabled: True
Lint/ElseLayout:
Enabled: True
......@@ -301,11 +295,11 @@ Lint/AssignmentInCondition:
Enabled: True
Lint/AmbiguousRegexpLiteral:
Enabled: True
Layout/BlockAlignment:
Lint/BlockAlignment:
Enabled: True
Layout/DefEndAlignment:
Lint/DefEndAlignment:
Enabled: True
Layout/EndAlignment:
Lint/EndAlignment:
Enabled: True
Lint/DeprecatedClassMethods:
Enabled: True
......@@ -411,4 +405,5 @@ Style/Alias:
Enabled: True
Metrics/BlockNesting:
Enabled: True
FrozenStringLiteralComment:
Enabled: False
......@@ -81,12 +81,6 @@ class freeipa::install::server {
contain 'freeipa::install::server::replica'
}
exec { 'semanage':
command => 'semanage port -a -t http_port_t -p tcp 8440',
unless => 'semanage port --list |grep 8440',
user => root,
}
ensure_resource (
'service',
'httpd',
......
# frozen_string_literal: true
require 'spec_helper_acceptance'
......
......@@ -7,6 +7,8 @@ HOSTS:
platform: el-7-x86_64
hypervisor: vagrant
box: centos/7
box_version: 1809.01
box_check_update: false
vagrant_memsize: 2048
ip: 192.168.44.35
ipa-server-2:
......@@ -15,6 +17,8 @@ HOSTS:
platform: el-7-x86_64
hypervisor: vagrant
box: centos/7
box_version: 1809.01
box_check_update: false
vagrant_memsize: 2048
ip: 192.168.44.36
ipa-client-centos:
......@@ -24,6 +28,8 @@ HOSTS:
platform: el-7-x86_64
hypervisor: vagrant
box: centos/7
box_version: 1809.01
box_check_update: false
ip: 192.168.44.37
CONFIG:
......
# frozen_string_literal: true
require 'spec_helper'
......
# frozen_string_literal: true
require 'spec_helper'
......
# frozen_string_literal: true
require 'spec_helper'
......
# frozen_string_literal: true
require 'spec_helper'
......
# frozen_string_literal: true
require 'spec_helper'
......
# frozen_string_literal: true
require 'spec_helper'
......
# frozen_string_literal: true
require 'spec_helper'
......
# frozen_string_literal: true
require 'spec_helper'
......
# frozen_string_literal: true
require 'spec_helper'
......
# frozen_string_literal: true
require 'spec_helper'
......
# frozen_string_literal: true
require 'spec_helper'
......
# frozen_string_literal: true
require 'spec_helper'
......
# frozen_string_literal: true
require 'spec_helper'
......
# frozen_string_literal: true
require 'puppetlabs_spec_helper/module_spec_helper'
require 'rspec-puppet-facts'
......
# frozen_string_literal: true
require 'beaker-rspec'
require 'beaker-puppet'
......@@ -31,6 +31,10 @@ RSpec.configure do |c|
onlyif => 'systemctl status NetworkManager',
path => '/usr/bin:/sbin:/bin',
}
exec { 'disable selinux':
command => 'setenforce 0',
path => '/usr/bin:/sbin:/bin',
}
EOS
apply_manifest_on(host, pp, catch_failures: true)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment