Salt Documentation Release 2014.7.6

Total Page:16

File Type:pdf, Size:1020Kb

Salt Documentation Release 2014.7.6 Salt Documentation Release 2014.7.6 SaltStack, Inc. May 19, 2015 Contents 1 Introduction to Salt 1 1.1 e 30 second summary ........................................... 1 1.2 Simplicity ................................................... 1 1.3 Parallel execution ............................................... 1 1.4 Building on proven technology ....................................... 2 1.5 Python client interface ............................................ 2 1.6 Fast, flexible, scalable ............................................. 2 1.7 Open ...................................................... 2 1.8 Salt Community ................................................ 2 1.9 Mailing List .................................................. 2 1.10 IRC ....................................................... 3 1.11 Follow on Github ............................................... 3 1.12 Blogs ...................................................... 3 1.13 Example Salt States .............................................. 3 1.14 Follow on ohloh ................................................ 3 1.15 Other community links ............................................ 4 1.16 Hack the Source ................................................ 4 2 Installation 5 2.1 ick Install .................................................. 5 2.2 Platform-specific Installation Instructions ................................. 5 2.3 Dependencies ................................................. 26 2.4 Optional Dependencies ............................................ 27 2.5 Upgrading Salt ................................................ 27 3 Tutorials 29 3.1 Introduction .................................................. 29 3.2 Basics ..................................................... 31 3.3 States ..................................................... 44 3.4 Advanced Topics ............................................... 71 3.5 Salt Virt .................................................... 111 3.6 Halite ..................................................... 115 3.7 Using Salt at scale ............................................... 118 4 Targeting Minions 123 4.1 Matching the minion id ......................................... 123 4.2 Grains ..................................................... 124 4.3 Subnet/IP Address Matching ......................................... 127 i 4.4 Compound matchers ............................................. 128 4.5 Node groups .................................................. 129 4.6 Batch Size ................................................... 129 4.7 SECO Range .................................................. 129 5 Storing Static Data in the Pillar 131 5.1 Declaring the Master Pillar ......................................... 131 5.2 Pillar namespace flaened .......................................... 132 5.3 Pillar Namespace Merges ........................................... 133 5.4 Including Other Pillars ............................................ 134 5.5 Viewing Minion Pillar ............................................ 134 5.6 Pillar ``get'' Function ............................................. 134 5.7 Refreshing Pillar Data ............................................ 135 5.8 Targeting with Pillar ............................................. 135 5.9 Set Pillar Data at the Command Line .................................... 135 5.10 Master Config In Pillar ............................................ 135 6 Reactor System 137 6.1 Event System ................................................. 137 6.2 Mapping Events to Reactor SLS Files .................................... 137 6.3 Fire an event ................................................. 138 6.4 Knowing what event is being fired ..................................... 138 6.5 Debugging the Reactor ............................................ 139 6.6 Understanding the Structure of Reactor Formulas ............................. 139 6.7 A Complete Example ............................................. 142 6.8 Syncing Custom Types on Minion Start .................................. 143 7 e Salt Mine 145 7.1 Mine Functions ................................................ 145 7.2 Mine Interval ................................................. 146 7.3 Example .................................................... 146 8 External Authentication System 147 8.1 Access Control System ............................................ 147 8.2 Tokens ..................................................... 148 8.3 LDAP and Active Directory ......................................... 149 9 Job Management 151 9.1 e Minion proc System ........................................... 151 9.2 Functions in the saltutil Module ....................................... 151 9.3 e jobs Runner ................................................ 151 9.4 Scheduling Jobs ................................................ 152 9.5 States ..................................................... 154 9.6 Highstates ................................................... 154 9.7 Runners .................................................... 154 9.8 Scheduler With Returner ........................................... 155 10 Salt Event System 159 10.1 Event types .................................................. 159 10.2 Listening for Events ............................................. 162 10.3 Firing Events ................................................. 164 10.4 Firing Events from Python .......................................... 164 11 Salt Syndic 167 11.1 Configuring the Syndic ............................................ 167 ii 11.2 Running the Syndic .............................................. 167 11.3 Topology ................................................... 168 11.4 Syndic and the CLI .............................................. 168 12 Salt Proxy Minion Documentation 169 12.1 Geing Started ................................................ 169 12.2 e __proxyenabled__ directive ....................................... 173 13 Windows Soware Repository 175 13.1 Operation ................................................... 175 13.2 Usage ..................................................... 176 13.3 Generate Repo Cache File .......................................... 177 13.4 Install Windows Soware .......................................... 178 13.5 Uninstall Windows Soware ......................................... 178 13.6 Standalone Minion Salt Windows Repo Module .............................. 178 13.7 Git Hosted Repo ............................................... 178 13.8 Troubleshooting ............................................... 179 14 Windows-specific Behaviour 181 14.1 Group parameter for files .......................................... 181 14.2 Dealing with case-insensitive but case-preserving names ......................... 181 14.3 Dealing with various username forms ................................... 182 14.4 Specifying the None group .......................................... 182 14.5 Symbolic link loops .............................................. 182 14.6 Modifying security properties (ACLs) on files ............................... 182 15 Salt Cloud 183 15.1 Geing Started ................................................ 183 15.2 Using Salt Cloud ............................................... 183 15.3 Core Configuration .............................................. 188 15.4 Windows Configuration ........................................... 198 15.5 Cloud Provider Specifics ........................................... 199 15.6 Miscellaneous Options ............................................ 254 15.7 Troubleshooting Steps ............................................ 258 15.8 Extending Salt Cloud ............................................. 261 15.9 Using Salt Cloud from Salt .......................................... 270 15.10 Feature Comparison ............................................. 274 16 netapi modules 279 16.1 Writing netapi modules ........................................... 279 16.2 Introduction to netapi modules ....................................... 280 16.3 Client interfaces ............................................... 280 17 Salt Virt 283 17.1 Salt Virt Tutorial ............................................... 283 17.2 e Salt Virt Runner ............................................. 283 17.3 Based on Live State Data ........................................... 284 17.4 Deploy from Network or Disk ........................................ 284 18 Understanding YAML 287 18.1 Rule One: Indentation ............................................ 287 18.2 Rule Two: Colons ............................................... 287 18.3 Rule ree: Dashes .............................................. 288 18.4 Learning More ................................................ 288 iii 19 Master Tops System 289 20 Salt SSH 291 20.1 Salt SSH Roster ................................................ 291 20.2 Calling Salt SSH ................................................ 292 20.3 States Via Salt SSH .............................................. 292 20.4 Targeting with Salt SSH ........................................... 292 20.5 Configuring Salt SSH ............................................. 292 20.6 Running Salt SSH as non-root user ..................................... 293 20.7 Define CLI Options with Saltfile ....................................... 293 21 Salt Rosters 295 21.1 How Rosters Work .............................................. 295 22 Reference 297 22.1 Full list of builtin auth modules ......................................

  1533
Recommended publications
  • Solaris 10 End of Life
    Solaris 10 end of life Continue Oracle Solaris 10 has had an amazing OS update, including ground features such as zones (Solaris containers), FSS, Services, Dynamic Tracking (against live production operating systems without impact), and logical domains. These features have been imitated in the market (imitation is the best form of flattery!) like all good things, they have to come to an end. Sun Microsystems was acquired by Oracle and eventually, the largest OS known to the industry, needs to be updated. Oracle has set a retirement date of January 2021. Oracle indicated that Solaris 10 systems would need to raise support costs. Oracle has never provided migratory tools to facilitate migration from Solaris 10 to Solaris 11, so migration to Solaris has been slow. In September 2019, Oracle decided that extended support for Solaris 10 without an additional financial penalty would be delayed until 2024! Well its March 1 is just a reminder that Oracle Solaris 10 is getting the end of life regarding support if you accept extended support from Oracle. Combined with the fact gdpR should take effect on May 25, 2018 you want to make sure that you are either upgraded to Solaris 11.3 or have taken extended support to obtain any patches for security issues. For more information on tanningix releases and support dates of old and new follow this link ×Sestive to abort the Unix Error Operating System originally developed by Sun Microsystems SolarisDeveloperSun Microsystems (acquired by Oracle Corporation in 2009)Written inC, C'OSUnixWorking StateCurrentSource ModelMixedInitial release1992; 28 years ago (1992-06)Last release11.4 / August 28, 2018; 2 years ago (2018-08-28)Marketing targetServer, PlatformsCurrent: SPARC, x86-64 Former: IA-32, PowerPCKernel typeMonolithic with dynamically downloadable modulesDefault user interface GNOME-2-LicenseVariousOfficial websitewww.oracle.com/solaris Solaris is the own operating system Of Unix, originally developed by Sunsystems.
    [Show full text]
  • Python Guide Documentation 0.0.1
    Python Guide Documentation 0.0.1 Kenneth Reitz 2015 11 07 Contents 1 3 1.1......................................................3 1.2 Python..................................................5 1.3 Mac OS XPython.............................................5 1.4 WindowsPython.............................................6 1.5 LinuxPython...............................................8 2 9 2.1......................................................9 2.2...................................................... 15 2.3...................................................... 24 2.4...................................................... 25 2.5...................................................... 27 2.6 Logging.................................................. 31 2.7...................................................... 34 2.8...................................................... 37 3 / 39 3.1...................................................... 39 3.2 Web................................................... 40 3.3 HTML.................................................. 47 3.4...................................................... 48 3.5 GUI.................................................... 49 3.6...................................................... 51 3.7...................................................... 52 3.8...................................................... 53 3.9...................................................... 58 3.10...................................................... 59 3.11...................................................... 62
    [Show full text]
  • Nagios Plugins - Installing Nagios Plugins from Source
    Nagios Plugins - Installing Nagios Plugins From Source Article Number: 569 | Rating: 2.4/5 from 7 votes | Last Updated: Mon, Feb 15, 2021 at 1:24 PM O ve r vie w This KB article provides instructions on installing Nagios Plugins from source. You will have observed that most of the existing documentation already includes steps on installing the plugins. However there are some plugins that require other libraries which are not included in those instructions. The goal of this documentation is to provide the instructions to install every possible plugin that exists. Nagios Plugins 2.3.3 is what this guide instructs you to install, however future versions should also work fine with these steps. Some considerations: It is assumed that you are logged onto the machine you are installing Nagios Plugins as the ro o t user, or a user with sufficient privileges. All of the steps below were tested on the operating systems (OS) listed after a clean install of the OS. Some OS's like Ubuntu and SUSE have stricter user permissions, in those cases the listed commands have sudo in front of them to ensure you are able to complete the steps. A best effort has been made to ensure if you follow all the relevant steps you will end up with a working installation of Nagios Plugins. The KB article is broken up into the following steps: Install Prerequisites - Common Install Prerequisites - Package XYZ Some plugins (MySQL for example) require addtional libraries and have their own section. They are also in their own section as not everyone requires to monitor that specific item.
    [Show full text]
  • Microservices
    Implementing DevOps with Ansible 2 Build, develop, test, deploy, and monitor in seconds Jonathan McAllister BIRMINGHAM - MUMBAI Implementing DevOps with Ansible 2 Copyright © 2017 Packt Publishing All rights reserved. No part of this book may be reproduced, stored in a retrieval system, or transmitted in any form or by any means, without the prior written permission of the publisher, except in the case of brief quotations embedded in critical articles or reviews. Every effort has been made in the preparation of this book to ensure the accuracy of the information presented. However, the information contained in this book is sold without warranty, either express or implied. Neither the author, nor Packt Publishing, and its dealers and distributors will be held liable for any damages caused or alleged to be caused directly or indirectly by this book. Packt Publishing has endeavored to provide trademark information about all of the companies and products mentioned in this book by the appropriate use of capitals. However, Packt Publishing cannot guarantee the accuracy of this information. First published: July 2017 Production reference: 1200717 Published by Packt Publishing Ltd. Livery Place 35 Livery Street Birmingham B3 2PB, UK. ISBN 978-1-78712-053-2 www.packtpub.com Credits Author Copy Editors Jonathan McAllister Madhusudan Uchil Stuti Srivastava Reviewer Project Coordinator Matthew Fisher Virginia Dias Acquisition Editor Proofreader Meeta Rajani Safis Editing Content Development Editor Indexer Sharon Raj Aishwarya Gangawane Technical Editor Graphics Vishal Kamal Mewada Kirk D'Penha Production Coordinator Aparna Bhagat About the Author Jonathan McAllister has been creating software and automations since he was a child.
    [Show full text]
  • Python Guide Documentation 0.0.1
    Python Guide Documentation 0.0.1 Kenneth Reitz 2015 09 13 Contents 1 Getting Started 3 1.1 Picking an Interpreter..........................................3 1.2 Installing Python on Mac OS X.....................................5 1.3 Installing Python on Windows......................................6 1.4 Installing Python on Linux........................................7 2 Writing Great Code 9 2.1 Structuring Your Project.........................................9 2.2 Code Style................................................ 15 2.3 Reading Great Code........................................... 24 2.4 Documentation.............................................. 24 2.5 Testing Your Code............................................ 26 2.6 Common Gotchas............................................ 30 2.7 Choosing a License............................................ 33 3 Scenario Guide 35 3.1 Network Applications.......................................... 35 3.2 Web Applications............................................ 36 3.3 HTML Scraping............................................. 41 3.4 Command Line Applications....................................... 42 3.5 GUI Applications............................................. 43 3.6 Databases................................................. 45 3.7 Networking................................................ 45 3.8 Systems Administration......................................... 46 3.9 Continuous Integration.......................................... 49 3.10 Speed..................................................
    [Show full text]
  • Admin Guide 3.9.6 Solaris Revision:2037 Generated:02/10/2020 14:30 | Contents | Ii
    High-Speed Endpoint Admin Guide 3.9.6 Solaris Revision:2037 Generated:02/10/2020 14:30 | Contents | ii Contents Introduction............................................................................................................... 6 Installation and Upgrades........................................................................................8 Before Upgrading or Downgrading......................................................................................................................8 Installing HST Endpoint.....................................................................................................................................10 Upgrade Follow up.................................................................................................................................11 Configuring the Firewall.................................................................................................................................... 12 Securing Your SSH Server.................................................................................................................................14 Changing and Securing the TCP Port....................................................................................................14 Configuring Transfer Server Authentication With the Host-Key Fingerprint........................................16 Testing a Locally Initiated Transfer................................................................................................................... 17 Updating the Product License...........................................................................................................................
    [Show full text]
  • Ansible Cheat Sheet
    ANSIBLE Environment Setup Ad- hoc Commands P l a y b o o k s Types of machines: • General syntax of ad-hoc command: • It is the place where all YAML files are stored and CHEAT SHEET • Control machine : manages other machines Command hostngroup module/options[arguments] executed. Acts like a to-do list • Remote machine: controlled by other machines • YAML- yet another markup language Multiple remote systems can be handled by one machine. • A playbook can have more than one plays. Plays map the A n s i b l e • Remote machine managing is done by ansible by default. FUNCTION COMMANDS instructions defined against a particular host • Ansible doesn’t leave any software running on them. Therefore • Typically written in a text editor like notepad or • It is an open source engine that automates deployment, there is no need of an upgrade when moving to a newer notepad++ orchestration, cloud provisioning and other tools. Check connectivity of hosts #ansible <group> -m ping version. Sample playbook/YAML file; • It uses a playbook to describe jobs and uses YAML which is human • Install it through apt, yumpkg, pip, OpenCSW name: install and configure DB readable • installing it through apt : Rebooting hosts #ansible <group> -a “/bin/reboot” hosts: testServer • It is designed for multi- tier deployment. It is agentless and works by $ sudo apt-get update become: yes connecting nodes through ssh. $ sudo apt-get install software-properties-common Check host system’s info #ansible<group> -m steup | less vars: oracle_db_port_value : 1521 $ sudo apt-add-repository ppa: ansible/ansible $ sudo apt-get tasks: update -name: Install the Oracle DB How Does it Work? #ansible <group> -m copy -a $ sudo apt-get install ansible Transfering files yum: <code to install the DB> • Run ansible version to make sure it was installed properly.
    [Show full text]
  • Remotebox Version 1.5 Documentation
    RemoteBox Version 1.5 Open Source VirtualBox Client with Remote Management Documentation Table of Contents 1 Introduction.................................................................................................................................4 2 RemoteBox Requirements.........................................................................................................4 2.1 Fedora.................................................................................................................................4 2.2 Mandriva / Mageia...............................................................................................................5 2.3 OpenSUSE..........................................................................................................................5 2.4 Ubuntu / Mint.......................................................................................................................5 2.5 Mac OS X............................................................................................................................5 2.6 NetBSD................................................................................................................................5 2.7 FreeBSD..............................................................................................................................6 2.8 Solaris / OpenSolaris / OpenIndiana.................................................................................6 3 RemoteBox Installation...............................................................................................................6
    [Show full text]
  • Ansible 2.2 Documentation Release 2.4
    Ansible 2.2 Documentation Release 2.4 Ansible, Inc October 06, 2017 Contents 1 About Ansible 1 i ii CHAPTER 1 About Ansible Welcome to the Ansible documentation! Ansible is an IT automation tool. It can configure systems, deploy software, and orchestrate more advanced IT tasks such as continuous deployments or zero downtime rolling updates. Ansible’s main goals are simplicity and ease-of-use. It also has a strong focus on security and reliability, featuring a minimum of moving parts, usage of OpenSSH for transport (with other transports and pull modes as alternatives), and a language that is designed around auditability by humans–even those not familiar with the program. We believe simplicity is relevant to all sizes of environments, so we design for busy users of all types: developers, sysadmins, release engineers, IT managers, and everyone in between. Ansible is appropriate for managing all envi- ronments, from small setups with a handful of instances to enterprise environments with many thousands of instances. Ansible manages machines in an agent-less manner. There is never a question of how to upgrade remote daemons or the problem of not being able to manage systems because daemons are uninstalled. Because OpenSSH is one of the most peer-reviewed open source components, security exposure is greatly reduced. Ansible is decentralized–it relies on your existing OS credentials to control access to remote machines. If needed, Ansible can easily connect with Kerberos, LDAP, and other centralized authentication management systems. This documentation covers the current released version of Ansible (2.3) and also some development version features (2.4).
    [Show full text]
  • Writing R Extensions
    Writing R Extensions Version 4.2.0 Under development (2021-09-27) R Core Team This manual is for R, version 4.2.0 Under development (2021-09-27). Copyright c 1999{2021 R Core Team Permission is granted to make and distribute verbatim copies of this manual provided the copyright notice and this permission notice are preserved on all copies. Permission is granted to copy and distribute modified versions of this manual under the conditions for verbatim copying, provided that the entire resulting derived work is distributed under the terms of a permission notice identical to this one. Permission is granted to copy and distribute translations of this manual into an- other language, under the above conditions for modified versions, except that this permission notice may be stated in a translation approved by the R Core Team. i Table of Contents Acknowledgements ::::::::::::::::::::::::::::::::::::::::::::::::: 1 1 Creating R packages ::::::::::::::::::::::::::::::::::::::::::: 2 1.1 Package structure :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: 3 1.1.1 The DESCRIPTION file ::::::::::::::::::::::::::::::::::::::::::::::::::::::::: 4 1.1.2 Licensing ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: 8 1.1.3 Package Dependencies::::::::::::::::::::::::::::::::::::::::::::::::::::::::: 9 1.1.3.1 Suggested packages:::::::::::::::::::::::::::::::::::::::::::::::::::::: 12 1.1.4 The INDEX file ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: 13 1.1.5 Package subdirectories :::::::::::::::::::::::::::::::::::::::::::::::::::::::
    [Show full text]
  • Solaris X86 FAQ
    Solaris x86 FAQ Dan E. Anderson Solaris x86 FAQ Table of Contents r r r r Solaris x86 FAQr r...................................................................................................................................1 r r r Detailed Contentsr r..........................................................................................................................2 r r r r Solaris x86 FAQr r...............................................................................................................................116 r r r Detailed Contentsr r......................................................................................................................117 i r r r r r Solaris x86 FAQr r r r r r r r ENGLISH r r r / r r r r [IPv6-only r r r r r r r / r Japaneser mirrorr RUSSIANr r r (below)rr [Translation]r [Another FAQ]r of this FAQ]r r r r r r r Search Solaris x86 FAQ:r r r r r r r r r r r r r r r r r r r r 9. Interoperability With Other r r r r r Operating Systemsr r r r r r r r r r r r 2. Introductionr r r r r r r r r Complete FAQ:r r r r r r r 3. Resourcesr r r r r r r r r r r 4. Pre-installationr r r r r r ♦ HTML Formatr r r r r r 5. Installationr r r r r ♦ Plain Text Formatr r ♦ Gzip-compressed Text r r r r r 6. Post-installation (Customization)r Formatr ♦ Translation:r r r r r r r r r r 7. Troubleshootingr r r r r r RUSSKAYA / RUSSIAN r r r r Versionr by Dubna r r r r r 8. X Windowsr International Universityr (Version 2.4, 10/1999)r r r r r r r r r r r r Solaris x86 FAQr r 1 Solaris x86 FAQ r r r r r r r Detailed Contentsr r r r r r Read the FAQ as an ebook.r r Upload Palm DOC, Plucker, Text,r r PDF & HTML formats.r r See "Ebook formats" for links.r r r r r r r r r NEXT -> r r r r r r r r r r r r r r r r r r r r r r r r r This web page is not associated with Sun Microsystems.r Copyright © 1997-2010 Dan Anderson.
    [Show full text]
  • List of Applications Updated in ARL #2581
    List of Applications Updated in ARL #2581 Application Name Publisher .NET Core Runtime 3.0 Preview Microsoft .NET Core Toolset 3.1 Preview Microsoft .NET Framework 4.5 Microsoft .NET Framework 4.6 Microsoft .NET Framework Developer Pack 4.7 Microsoft .NET Framework Multi-Targeting Pack for Windows Store Apps 4.5 RC Microsoft .NET Framework SDK 4.8 Microsoft _connect.BRAIN 4.8 Bizerba 2200 TapeStation Software 3.1 Agilent Technologies 2200 TapeStation Software 3.2 Agilent Technologies 24x7 Automation Suite 3.6 SoftTree Technologies 3500 Rack Configuration Software 6.0 Bently Nevada 365 16.0 Microsoft 3D Sprint 2.10 3D Systems 3D Sprint 2.11 3D Systems 3D Sprint 2.12 3D Systems 3D Viewer Microsoft 3PAR Host Explorer VMware 4.0 HP 4059 Extended Edition Attendant Console 2.1 ALE International 4uKey 1.4 Tenorshare 4uKey 1.6 Tenorshare 4uKey 2.2 Tenorshare 50 Accounts 21.0 Sage Group 50 Accounts 25.1 Sage Group 793 Controller Software 5.8 MTS Systems 793 Controller Software 5.9 MTS Systems 793 Controller Software 6.1 MTS Systems 7-Zip 19.00 Igor Pavlov ABAQUS 2018 Student Dassault Systemes ABAQUS 2019 Student Dassault Systemes Abstract 73.0 Elastic Projects ABU Service 14.10 Teradata Access Client 3.5 Barracuda Networks Access Client 3.7 Barracuda Networks Access Client 4.1 Barracuda Networks Access Module for Azure 15.1 Teradata Access Security Gateway (ASG) Soft Key Avaya AccuNest 10.3 Gerber Technology AccuNest 11.0 Gerber Technology ACDSee 2.3 Free ACD Systems ACDSee 2.4 Free ACD Systems ACDSee Photo Studio 2019 Professional ACD Systems
    [Show full text]