Note

The Funtoo Linux project has transitioned to "Hobby Mode" and this wiki is now read-only.

FLOP:Funtoo System Config-Blobs

From Funtoo
Jump to navigation Jump to search
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