Revision 118 as of 2021-02-11 10:28:59

Clear message

Konfigurationsmanagement mit VAMOS, Git, SUE, Cfengine und Ansible

Beschreibung von SUE/SVN

<!> Diese Infos sind teilweise veraltet. Sue wird seit 2020 mit Git verwendet. Außerdem findet eine Migration nach Ansible statt.

Konfiguration der Host Systeme

/usr/sue/sbin/sue.bootstrap -h
usage:
        -d|-v     set debug mode
        -h        show usage
        -P <path> generating sue env in this directory
        -F <feature>:<dir>  to test a feature on a host (maybe before putting the code into git),
                  examples: -F sudo:/tmp/test; /tmp/test/feature/sudo and /tmp/test/archive/sudo have to exist
                            -F group:/afs/.ifh.de/common/installation/test

/usr/sue/sbin/sue.run -h 
  check network connection and the availability of the git server,
  runs 'git pull; sue.bootstrap' and then sue.run with the given mode
  informs 'scout-linux' in case of problems
Usage:
        -d      set debug mode, no delay
        -v      set verbose mode (more cfengine output), no delay
        -n      set noaction mode, implied debug mode 
        -s      skip sue.bootstrap
        -m <mode>       set mode: full,boot,update or now(default)
                nightly run in 'full' mode with delay
                run in 'boot' mode without delay
                daily run in 'update' mode for requested features ( by vamos workflow )
                run in 'now' mode without delay for given features
                  in future: 
                  daily run can switch to full mode with
                  touchfeatures -F ALL ...
        -h      show usage

FAQ zu SUE/Cfengine

Updates per Cron-Jobs

tagsüber nur per workflow angestoßene Features (6-23 Uhr alle 10 Minuten)

   /usr/sue/sbin/activate -F list_of_features [-H list_of_hosts] [-N list_of_netgroups]

   activate -F scout,sudo -N linux-server
   activate -F ANY -H mydesk              # alle Features, die standardmäßig laufen, der Test erfolgt erst auf dem Client
   activate -F nagios -H ANY

Vollständiger Lauf (ab 3 Uhr mit Verzögerung)

Nutzung von Git

Die Entwicklung von Sue/Git findet im gitlab auf repo.zeuthen.desy.de statt. Sue holt sich die Repos von einem der Git Mirror znrepo[1-3].

Um Zugriff zu https://repo.zeuthen.desy.de/infra/sue-cfengine zu erhalten bitte auf 1x Anmelden. Anschließen jemanden aus der Unix Gruppe bitten in die Gitlab Infra Gruppe aufgenommen zu werden. In https://repo.zeuthen.desy.de/profile/keys einen SSH Key hinterlegen oder alternativ immer per HTTPs arbeiten.

Nutzung von SVN

Einchecken neuer Features

Liste der Features und Status

EL = Enterprise Linux (RHEL,SL,CentOS)

feature

EL

Ansible

Kommentare

aaru

6,7,8

(./)

afs_backup

5,6

afs_client

5,6

afs_server

5,6

ai

5,6

more to done

arcx

5,6

atlas

5,6

automount

5,6

cfengine

5,6,7

conmgr

5

csinfo12

6

cta

5,6

cups

5,6

cvmfs

5,6

dcache

5,6

dhcp

5,6

needs workflow support

doocsadm

5,6

exclude_macs

5,6

exports

5,6

ganglia

5,6

gdm

5,6

grid

5,6

group

5,6,7

hostmgt

5,6

hosts

5,6,7

httpd

5,6

infiniband

5,6

iptables

5,6,7

iss

5,6

kerberos

5,6

kernel

5,6

klogin

5,6,7

kvm

5

ldap

5

linux

5,6

localdisks

5,6

lustre

5,6

mailsrv

5

(Nov 2012)

for SL6 more to do

motd

5,6

mysql

5,6

nagios

5,6

now server and client

name_srv

5,6

netflow

5,6

netgroup

5,6

needs workflow support

nfs

5,6

nsswitch

5,6,7

osmng

6

osmdevel

6

pac

5,6

pam

5,6

passwd

5,6,7

passwd_prog

5,6

postgres

5,6

products

5

reg_notebooks

5,6

radius server, ...

rlogsurf

6

samba

5,6

now with a regular archive, no longer uses /project/install

scout

5,6

security

5,6,7

sge

5,6

spamd

5

ssh

5,6,7

sudo

5,6

syslog

5,6

tcp_wrapper

5,6,7

cleanup

temp

5,6

was since May 2012

tidy_up

5,6, 7

trusted

5

updated it, too

tsm

5,6

vamos

5,6

todo

vamosw

6

vsftpd

5(,6?)

xntp

5,6

znmon

5,6

zzz

5,6

Konfigurationsmaster