Skip to content

Solaris-like systems should have a differente system module (#30414) - #30519

Merged
cachedout merged 5 commits into
saltstack:developfrom
sjorge:module-system
Jan 21, 2016
Merged

cachedout merged 5 commits into
saltstack:developfrom
sjorge:module-system

Conversation

@sjorge

@sjorge sjorge commented Jan 21, 2016

Copy link
Copy Markdown
Contributor
  • disable salt.modules.system on Solaris-like kernels
  • tiny doc fix for salt.modules.system
  • create new salt.module.solaris_system (virtualname=system) for Solaris-like systems
  • hooks to generate docs for salt.module.solaris_system

This fixes #30414

@sjorge

sjorge commented Jan 21, 2016

Copy link
Copy Markdown
Contributor Author
[root@cronos ~]# salt cronos system.shutdown 15 '=== salt will go to bed ==='
Broadcast Message from root (???) on cronos Thu Jan 21 20:08:29...
THE SYSTEM cronos IS BEING SHUT DOWN NOW ! ! !
Log off now or risk your files being damaged
=== salt will go to bed ===
local:

    Shutdown started.    Thu Jan 21 20:08:24 UTC 2016

    showmount: cronos: RPC: Rpcbind failure - RPC: Unable to receive
    showmount: cronos: RPC: Rpcbind failure - RPC: Unable to receive
    Changing to init state 5 - please wait


[root@cronos ~]# salt cronos system.reboot 5 '=== salt will be right back ==='
Broadcast Message from root (???) on cronos Thu Jan 21 20:13:29...
THE SYSTEM cronos IS BEING SHUT DOWN NOW ! ! !
Log off now or risk your files being damaged
=== salt will be right back ===
cronos:

    Shutdown started.    Thu Jan 21 20:13:29 UTC 2016

    showmount: cronos: RPC: Rpcbind failure - RPC: Unable to receive
    Changing to init state 6 - please wait

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@sjorge, .. versionadded:: Boron.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch, added

cachedout pushed a commit that referenced this pull request Jan 21, 2016
Solaris-like systems should have a differente system module (#30414)
@cachedout
cachedout merged commit 8275e72 into saltstack:develop Jan 21, 2016
@cachedout

Copy link
Copy Markdown
Contributor

Thanks again @sjorge !

@damon-atkins

Copy link
Copy Markdown
Contributor

This comes now to module naming standards, which allow support for multiple OS and the fact some software is available on multiple OS. java naming standard like maybe. Then the layer on top of this is the virtual names and their standard functions every module must implement and then optional functions it must implement. If you call the solaris one solars_system the linux one should be called linux_system and aix_system etc.

@sjorge

sjorge commented Jan 22, 2016

Copy link
Copy Markdown
Contributor Author

Yeah the naming standard can be improved.

If you look around you did a few os_name around. I just followed that.

There are also some without the _, that could probably use a bit or cleanup.

Perhaps this should get it's own issue though.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

salt.modules.system should play nice on solaris

4 participants