Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
W
workstation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Package Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Lysator
Puppet
workstation
Commits
9c4dcdca
Commit
9c4dcdca
authored
Aug 19, 2020
by
Henrik Henriksson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Write a bunch of code
parent
336035a3
Pipeline
#532
failed with stages
Changes
8
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
88 additions
and
6 deletions
+88
-6
data/os/Fedora.yaml
data/os/Fedora.yaml
+17
-0
manifests/desktop_environment/gnome.pp
manifests/desktop_environment/gnome.pp
+11
-0
manifests/desktop_environment/xfce.pp
manifests/desktop_environment/xfce.pp
+8
-0
manifests/init.pp
manifests/init.pp
+7
-6
manifests/login_manager.pp
manifests/login_manager.pp
+6
-0
spec/classes/desktop_environment/gnome_spec.rb
spec/classes/desktop_environment/gnome_spec.rb
+13
-0
spec/classes/desktop_environment/xfce_spec.rb
spec/classes/desktop_environment/xfce_spec.rb
+13
-0
spec/classes/login_manager_spec.rb
spec/classes/login_manager_spec.rb
+13
-0
No files found.
data/os/Fedora.yaml
0 → 100644
View file @
9c4dcdca
---
workstation::desktop_environments:
- xfce
- gnome
workstation::packages:
- vlc
workstation::desktop_environment::gnome::packages: []
# Installed by default
workstation::desktop_environment::xfce::packages:
- xfce4-panel
- xfce4-session
- xfce4-settings
- xfconf
- xfdesktop
- xfwm4
manifests/desktop_environment/gnome.pp
0 → 100644
View file @
9c4dcdca
# @summary A short summary of the purpose of this class
#
# A description of what this class does
#
# @example
# include workstation::desktop_environment::gnome
class
workstation::desktop_environment::gnome
(
$packages
=
undef
,
){
ensure_packages
(
$packages
)
}
manifests/desktop_environment/xfce.pp
0 → 100644
View file @
9c4dcdca
# @summary A short summary of the purpose of this class
#
# A description of what this class does
#
# @example
# include workstation::desktop_environment::xfce
class
workstation::desktop_environment::xfce
{
}
manifests/init.pp
View file @
9c4dcdca
# Install a generic workstation, all bells and whistles
# Add lysator-specific things to the profile instead.
# Add lysator-specific things to the profile instead
, or via foreman
.
class
workstation
(
$desktop_environments
=
[],
$packages
=
[],
$desktop_environments
=
undef
,
# hiera
$packages
=
undef
,
# hiera
){
# Install and setup a login manager
include
::
desktop_environment
::login_manager
include
::
workstation
::login_manager
ensure_packages
(
$packages
)
# Install a desktop environment
$desktop_environments
.
each
|
$e
|
{
include
"::desktop_environment::
${e}
"
include
"::
workstation::
desktop_environment::
${e}
"
}
# Install additional packages
ensure_packages
(
$packages
)
}
manifests/login_manager.pp
0 → 100644
View file @
9c4dcdca
# @summary Setup a login manager
#
# @example
# include workstation::login_manager
class
workstation::login_manager
{
}
spec/classes/desktop_environment/gnome_spec.rb
0 → 100644
View file @
9c4dcdca
# frozen_string_literal: true
require
'spec_helper'
describe
'workstation::desktop_environment::gnome'
do
on_supported_os
.
each
do
|
os
,
os_facts
|
context
"on
#{
os
}
"
do
let
(
:facts
)
{
os_facts
}
it
{
is_expected
.
to
compile
}
end
end
end
spec/classes/desktop_environment/xfce_spec.rb
0 → 100644
View file @
9c4dcdca
# frozen_string_literal: true
require
'spec_helper'
describe
'workstation::desktop_environment::xfce'
do
on_supported_os
.
each
do
|
os
,
os_facts
|
context
"on
#{
os
}
"
do
let
(
:facts
)
{
os_facts
}
it
{
is_expected
.
to
compile
}
end
end
end
spec/classes/login_manager_spec.rb
0 → 100644
View file @
9c4dcdca
# frozen_string_literal: true
require
'spec_helper'
describe
'workstation::login_manager'
do
on_supported_os
.
each
do
|
os
,
os_facts
|
context
"on
#{
os
}
"
do
let
(
:facts
)
{
os_facts
}
it
{
is_expected
.
to
compile
}
end
end
end
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment