Skip to content

Commit

Permalink
Merge pull request #31 from david-barbion/master
Browse files Browse the repository at this point in the history
add support for Archlinux
  • Loading branch information
trlinkin authored Jul 15, 2022
2 parents b56778b + 1bc6f3c commit cbf0838
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 1 deletion.
21 changes: 21 additions & 0 deletions manifests/params.pp
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,27 @@
$shells_default = undef
$sudoers_default = undef
}
'Archlinux': {
$file_group = 'root'
$passwd_default = ['files','mymachines','systemd']
$shadow_default = ['files']
$group_default = ['files','mymachines','systemd']
$automount_default = undef
$services_default = ['files']
$netgroup_default = ['files']
$aliases_default = undef
$bootparams_default = undef
$ethers_default = ['files']
$gshadow_default = undef
$hosts_default = ['files','mymachines','myhostname','resolve [!UNAVAIL=return]','dns']
$netmasks_default = undef
$networks_default = ['files']
$protocols_default = ['files']
$publickey_default = ['files']
$rpc_default = ['files']
$shells_default = undef
$sudoers_default = undef
}
default: {
fail("${facts['operatingsystem']} is not a supported operating system.")
}
Expand Down
4 changes: 4 additions & 0 deletions metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
"version_requirement": ">= 4.25.0 < 9.0.0"
}
],
"data_provider": null,
"operatingsystem_support": [
{
"operatingsystem": "RedHat",
Expand Down Expand Up @@ -159,6 +160,9 @@
"35",
"36"
]
},
{
"operatingsystem": "Archlinux"
}
],
"requirements": [
Expand Down
2 changes: 1 addition & 1 deletion spec/classes/nsswitch_spec.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
require 'spec_helper'

describe 'nsswitch', type: :class do
%w[CentOS RedHat Amazon CloudLinux OracleLinux Scientific Fedora SLES Solaris Debian Ubuntu Gentoo LinuxMint].each do |os|
%w[CentOS RedHat Amazon CloudLinux OracleLinux Scientific Fedora SLES Solaris Debian Ubuntu Gentoo LinuxMint Archlinux].each do |os|
context "when used with default parameter on #{os}" do
let(:facts) do
{
Expand Down

0 comments on commit cbf0838

Please sign in to comment.