Skip to content

Commit

Permalink
Add role and state for using HP printers
Browse files Browse the repository at this point in the history
  • Loading branch information
dseomn committed Nov 30, 2023
1 parent 68e995e commit 255d404
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 0 deletions.
1 change: 1 addition & 0 deletions salt/config/minion.d/90-local.conf.example
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,6 @@ grains:
role:
desktop:
dev:
hp-printer:
debian:
track: testing
19 changes: 19 additions & 0 deletions salt/file/hp_printer/init.sls
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Copyright 2023 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.


hp_printer_pkgs:
pkg.installed:
- pkgs:
- hplip
3 changes: 3 additions & 0 deletions salt/file/top.sls
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,9 @@ base:
- ssh.server
- standard

'G@role:hp-printer':
- hp_printer

'G@role:irc:bouncer':
- irc.bouncer

Expand Down

0 comments on commit 255d404

Please sign in to comment.