Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Nest
Puppet
Commits
f5c54c66
Commit
f5c54c66
authored
Jul 08, 2021
by
James T. Lee
Browse files
network: Initial iwd configuration
parent
58e5e465
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
48 additions
and
1 deletion
+48
-1
data/node/harrier.yaml
data/node/harrier.yaml
+2
-0
data/node/owl.yaml
data/node/owl.yaml
+2
-0
data/node/secretarybird.yaml
data/node/secretarybird.yaml
+4
-1
data/platform/pinebookpro.yaml
data/platform/pinebookpro.yaml
+1
-0
data/platform/raspberrypi.yaml
data/platform/raspberrypi.yaml
+1
-0
manifests/base/network.pp
manifests/base/network.pp
+37
-0
manifests/init.pp
manifests/init.pp
+1
-0
No files found.
data/node/harrier.yaml
0 → 100644
View file @
f5c54c66
---
puppet::environment: 'network'
data/node/owl.yaml
0 → 100644
View file @
f5c54c66
---
puppet::environment: 'network'
data/node/secretarybird.yaml
View file @
f5c54c66
...
@@ -2,5 +2,8 @@
...
@@ -2,5 +2,8 @@
nest::bootloader: systemd
nest::bootloader: systemd
nest::dvorak:
true
nest::dvorak:
true
nest::swap_alt_win:
true
nest::swap_alt_win:
true
nest::text_scaling_factor:
2.0
nest::gui_scaling_factor:
2.0
nest::gui_scaling_factor:
2.0
nest::text_scaling_factor:
2.0
nest::wifi:
true
puppet::environment: 'network'
data/platform/pinebookpro.yaml
View file @
f5c54c66
...
@@ -3,6 +3,7 @@ nest::bootloader: systemd
...
@@ -3,6 +3,7 @@ nest::bootloader: systemd
nest::dvorak:
true
nest::dvorak:
true
nest::swap_alt_win:
true
nest::swap_alt_win:
true
nest::text_scaling_factor:
1.1
nest::text_scaling_factor:
1.1
nest::wifi:
true
# Sustained load drains the battery. Reduce load from compilation by limiting
# Sustained load drains the battery. Reduce load from compilation by limiting
# build jobs to the number of big cores and leaving the LITTLE cores free for
# build jobs to the number of big cores and leaving the LITTLE cores free for
...
...
data/platform/raspberrypi.yaml
View file @
f5c54c66
...
@@ -3,6 +3,7 @@ nest::bootloader: systemd
...
@@ -3,6 +3,7 @@ nest::bootloader: systemd
nest::dvorak:
true
nest::dvorak:
true
nest::fscache:
false
nest::fscache:
false
nest::swap_alt_win:
true
nest::swap_alt_win:
true
nest::wifi:
true
nest::package_keywords:
nest::package_keywords:
# Still not fully open-source or mainlined...
# Still not fully open-source or mainlined...
...
...
manifests/base/network.pp
View file @
f5c54c66
...
@@ -15,6 +15,7 @@ class nest::base::network {
...
@@ -15,6 +15,7 @@ class nest::base::network {
~>
~>
exec
{
'systemd-networkd-reload'
:
exec
{
'systemd-networkd-reload'
:
command
=>
'/bin/networkctl reload'
,
command
=>
'/bin/networkctl reload'
,
onlyif
=>
'/bin/systemctl is-active systemd-networkd'
,
refreshonly
=>
true
,
refreshonly
=>
true
,
}
}
->
->
...
@@ -23,6 +24,42 @@ class nest::base::network {
...
@@ -23,6 +24,42 @@ class nest::base::network {
}
}
if
$::nest::wifi
{
package
{
'net-wireless/iwd'
:
ensure
=>
installed
,
}
->
file
{
'/var/lib/iwd'
:
ensure
=>
directory
,
mode
=>
'0600'
,
owner
=>
root
,
group
=>
root
,
recurse
=>
true
,
show_diff
=>
false
,
source
=>
'puppet:///modules/nest/private/iwd'
,
}
->
service
{
'iwd'
:
enable
=>
true
,
}
}
else
{
service
{
'iwd'
:
ensure
=>
stopped
,
enable
=>
false
,
}
->
package
{
'net-wireless/iwd'
:
ensure
=>
absent
,
}
->
file
{
'/var/lib/iwd'
:
ensure
=>
absent
,
force
=>
true
,
}
}
#
#
# XXX: Deprecated
# XXX: Deprecated
#
#
...
...
manifests/init.pp
View file @
f5c54c66
...
@@ -24,6 +24,7 @@ class nest (
...
@@ -24,6 +24,7 @@ class nest (
Boolean
$isolate_smt
=
false
,
Boolean
$isolate_smt
=
false
,
Hash
[
String
,
Nest
::
Kconfig
]
$kernel_config
=
{},
Hash
[
String
,
Nest
::
Kconfig
]
$kernel_config
=
{},
Array
[
String
]
$kernel_cmdline
=
[],
Array
[
String
]
$kernel_cmdline
=
[],
Boolean
$wifi
=
false
,
# Mail settings
# Mail settings
Optional
[
String
]
$gmail_username
=
undef
,
Optional
[
String
]
$gmail_username
=
undef
,
...
...
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