SEP Sesam Scripts

From SEPsesam
Jump to: navigation, search

Ansible

An ansible recipe for installing sesam client package via apt
# debian
$debian_version = "jessie"
$debian_repo_url = "deb http://download.sep.de/linux/repositories/debian/ Template:Debian version main"

##
# install sesam client package on debian related systems ##
- name: Install sesam-client debian package "(Template:Debian version)"
 hosts:
   - hostA
    - hostB
 gather_facts: false
 sudo: yes
 tasks:
 - name: add sesam apt key
   apt_key:
     url: http://download.sep.de/linux/repositories/debian/key.asc
     state: present
 - apt_repository:
     repo: "Template:Debian repo url"
     state: present
 - name: install sesam client
   apt:
      name: sesam-cli
- name: Allow access of sesam server *
 gather_facts: false
 sudo: yes
 vars:
   sesam_install: "/opt/sesam/bin/sesam/"
 hosts:
   - HostA
    - HostB
 tasks:
   - name: allow access from any sesam server
     command: 'Template:Sesam installsm_setup set_client "backup_server_hostname.full_qualified_domain.com"'

Installation

Media

Network

Misc