Difference between revisions of "FLOP:Funtoo System Config-Blobs"

From Funtoo
Jump to navigation Jump to search
(Created page with "{{FLOP |Created on=2017/04/30 |Summary=Add ability to manage all kinds of system configuration with use of a helper program and for example master-less saltstack. |Author=Pali...")
 
m
Line 5: Line 5:
|Source URI=https://git.liguros.net/palica/funtoo-salt.git
|Source URI=https://git.liguros.net/palica/funtoo-salt.git
}}
}}
Use salt to manage stuff in funtoo.
=== Prerequisities ===
These packages must/should be installed:
    app-admin/salt - mandatory
    app-shells/zsh - mandatory
    sys-apps/lsb-release - mandatory
    app-portage/eix - optional
Changes to /etc/salt/minion (config file):
file_client: local
file_roots:
  base:
    - /etc/salt/salt-repo
State definition files: Clone this repository into /etc/salt/salt-repo
=== Usage ===
# salt-call --local state.apply
local:
----------
          ID: sys-libs/timezone-data
    Function: pkg.installed
      Result: True
    Comment: Version 2017b of package 'sys-libs/timezone-data' is already installed
    Started: 01:54:02.540841
    Duration: 2602.581 ms
    Changes: 
----------
          ID: Europe/Prague
    Function: timezone.system
      Result: True
    Comment: Timezone Europe/Prague already set, UTC already set to Europe/Prague
    Started: 01:54:05.149674
    Duration: 5.225 ms
    Changes: 
----------
          ID: /etc/timezone
    Function: file.append
      Result: True
    Comment: File /etc/timezone is in correct state
    Started: 01:54:05.160280
    Duration: 12.612 ms
    Changes: 
----------
          ID: /etc/portage/make.conf
    Function: file.append
      Result: True
    Comment: File /etc/portage/make.conf is in correct state
    Started: 01:54:05.173361
    Duration: 77.315 ms
    Changes: 
Summary for local
------------
Succeeded: 4
Failed:    0
------------
Total states run:    4
Total run time:  2.698 s


{{FLOPFooter}}
{{FLOPFooter}}

Revision as of 20:45, April 30, 2017

Created on
2017/04/30
Original Author(s)
Palica
Git sources (for cloning)
Link
Status

Funtoo Linux Optimization Proposal: Funtoo System Config-Blobs

Add ability to manage all kinds of system configuration with use of a helper program and for example master-less saltstack.

Use salt to manage stuff in funtoo.

Prerequisities

These packages must/should be installed:

   app-admin/salt - mandatory
   app-shells/zsh - mandatory
   sys-apps/lsb-release - mandatory
   app-portage/eix - optional

Changes to /etc/salt/minion (config file):

file_client: local

file_roots:
  base:
    - /etc/salt/salt-repo

State definition files: Clone this repository into /etc/salt/salt-repo

Usage

# salt-call --local state.apply 
local:
----------
         ID: sys-libs/timezone-data
   Function: pkg.installed
     Result: True
    Comment: Version 2017b of package 'sys-libs/timezone-data' is already installed
    Started: 01:54:02.540841
   Duration: 2602.581 ms
    Changes:   
----------
         ID: Europe/Prague
   Function: timezone.system
     Result: True
    Comment: Timezone Europe/Prague already set, UTC already set to Europe/Prague
    Started: 01:54:05.149674
   Duration: 5.225 ms
    Changes:   
----------
         ID: /etc/timezone
   Function: file.append
     Result: True
    Comment: File /etc/timezone is in correct state
    Started: 01:54:05.160280
   Duration: 12.612 ms
    Changes:   
----------
         ID: /etc/portage/make.conf
   Function: file.append
     Result: True
    Comment: File /etc/portage/make.conf is in correct state
    Started: 01:54:05.173361
   Duration: 77.315 ms
    Changes:   
Summary for local
------------
Succeeded: 4
Failed:    0
------------
Total states run:     4
Total run time:   2.698 s