Skip to content

Commit

Permalink
feat(netdump): install the MooseFS monitory tool
Browse files Browse the repository at this point in the history
The `moosefs.netdump` install only the `mfsnetdump` command line
utility.
  • Loading branch information
baby-gnu committed Apr 22, 2023
1 parent 09a20e1 commit b79bd6e
Show file tree
Hide file tree
Showing 7 changed files with 44 additions and 0 deletions.
5 changes: 5 additions & 0 deletions moosefs/netdump/cleaned.sls
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# -*- mode: salt; coding: utf-8 -*-
# vim: ft=sls

include:
- .package.cleaned
5 changes: 5 additions & 0 deletions moosefs/netdump/init.sls
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# -*- mode: salt; coding: utf-8 -*-
# vim: ft=sls

include:
- .package
10 changes: 10 additions & 0 deletions moosefs/netdump/package/cleaned.sls
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# -*- mode: salt; coding: utf-8 -*-
# vim: ft=sls

{#- Get the `tplroot` from `tpldir` #}
{%- set tplroot = tpldir.split('/')[0] %}
{%- from tplroot ~ "/libs/map.jinja" import mapdata as moosefs with context %}
moosefs-netdump-package-cleaned-pkg-removed:
pkg.removed:
- name: {{ moosefs.netdump.pkg.name }}
5 changes: 5 additions & 0 deletions moosefs/netdump/package/init.sls
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# -*- mode: salt; coding: utf-8 -*-
# vim: ft=sls

include:
- .installed
10 changes: 10 additions & 0 deletions moosefs/netdump/package/installed.sls
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# -*- mode: salt; coding: utf-8 -*-
# vim: ft=sls

{#- Get the `tplroot` from `tpldir` #}
{%- set tplroot = tpldir.split('/')[0] %}
{%- from tplroot ~ "/libs/map.jinja" import mapdata as moosefs with context %}
moosefs-netdump-package-installed-pkg-installed:
pkg.installed:
- name: {{ moosefs.netdump.pkg.name }}
5 changes: 5 additions & 0 deletions moosefs/parameters/defaults.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -228,4 +228,9 @@ values:
enabled: false
pkg:
name: "moosefs-cli"

netdump:
enabled: false
pkg:
name: "moosefs-netdump"
...
4 changes: 4 additions & 0 deletions moosefs/parameters/os_family/FreeBSD.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,8 @@ values:
cli:
pkg:
name: "moosefs3-cli"

netdump:
pkg:
name: "moosefs3-netdump"
...

0 comments on commit b79bd6e

Please sign in to comment.