Updated version to 4.0.1
Updated version to 4.0.1 Change-Id: Id7ce661b9579c498e940512a4e1ec0ebf414cb3f
This commit is contained in:
parent
079cf5ceb6
commit
7da19271e7
@ -16,7 +16,7 @@
|
||||
%{expand: %%define pyver %(python -c 'import sys;print(sys.version[0:3])')}
|
||||
|
||||
# Package version
|
||||
%global package_version 4.0.0
|
||||
%global package_version 4.0.1
|
||||
|
||||
# Kolla user name and group name (DO NOT CHANGE THESE!)
|
||||
%global kolla_user kolla
|
||||
@ -221,6 +221,9 @@ openstack-kollacli client.
|
||||
%attr(644, %{kolla_user}, %{kolla_group}) %{_datadir}/kolla/.ansible.cfg
|
||||
|
||||
%changelog
|
||||
* Wed Dec 06 2017 - Borne Mace <borne.mace@oracle.com>
|
||||
- Changed version to 4.0.1
|
||||
|
||||
* Tue Oct 25 2016 - Borne Mace <borne.mace@oracle.com>
|
||||
- Removed no longer relevant kollacli ansible directory
|
||||
|
||||
|
17
doc/build/html/_modules/index.html
vendored
17
doc/build/html/_modules/index.html
vendored
@ -6,7 +6,7 @@
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
|
||||
<title>Overview: module code — kollacli 4.0.0.dev483 documentation</title>
|
||||
<title>Overview: module code — kollacli 4.0.1.dev498 documentation</title>
|
||||
|
||||
<link rel="stylesheet" href="../_static/default.css" type="text/css" />
|
||||
<link rel="stylesheet" href="../_static/pygments.css" type="text/css" />
|
||||
@ -14,7 +14,7 @@
|
||||
<script type="text/javascript">
|
||||
var DOCUMENTATION_OPTIONS = {
|
||||
URL_ROOT: '../',
|
||||
VERSION: '4.0.0.dev483',
|
||||
VERSION: '4.0.1.dev498',
|
||||
COLLAPSE_INDEX: false,
|
||||
FILE_SUFFIX: '.html',
|
||||
HAS_SOURCE: true
|
||||
@ -23,7 +23,7 @@
|
||||
<script type="text/javascript" src="../_static/jquery.js"></script>
|
||||
<script type="text/javascript" src="../_static/underscore.js"></script>
|
||||
<script type="text/javascript" src="../_static/doctools.js"></script>
|
||||
<link rel="top" title="kollacli 4.0.0.dev483 documentation" href="../index.html" />
|
||||
<link rel="top" title="kollacli 4.0.1.dev498 documentation" href="../index.html" />
|
||||
</head>
|
||||
<body>
|
||||
<div class="related">
|
||||
@ -35,7 +35,7 @@
|
||||
<li class="right" >
|
||||
<a href="../py-modindex.html" title="Python Module Index"
|
||||
>modules</a> |</li>
|
||||
<li><a href="../index.html">kollacli 4.0.0.dev483 documentation</a> »</li>
|
||||
<li><a href="../index.html">kollacli 4.0.1.dev498 documentation</a> »</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
@ -45,9 +45,8 @@
|
||||
<div class="body">
|
||||
|
||||
<h1>All modules for which code is available</h1>
|
||||
<ul><li><a href="kollacli/api/async.html">kollacli.api.async</a></li>
|
||||
<li><a href="kollacli/api/client.html">kollacli.api.client</a></li>
|
||||
<li><a href="kollacli/api/deploy.html">kollacli.api.deploy</a></li>
|
||||
<ul><li><a href="kollacli/api/client.html">kollacli.api.client</a></li>
|
||||
<li><a href="kollacli/api/control_plane.html">kollacli.api.control_plane</a></li>
|
||||
<li><a href="kollacli/api/exceptions.html">kollacli.api.exceptions</a></li>
|
||||
<li><a href="kollacli/api/group.html">kollacli.api.group</a></li>
|
||||
<li><a href="kollacli/api/host.html">kollacli.api.host</a></li>
|
||||
@ -62,6 +61,8 @@
|
||||
<li><a href="kollacli/commands/host.html">kollacli.commands.host</a></li>
|
||||
<li><a href="kollacli/commands/password.html">kollacli.commands.password</a></li>
|
||||
<li><a href="kollacli/commands/property.html">kollacli.commands.property</a></li>
|
||||
<li><a href="kollacli/commands/pull.html">kollacli.commands.pull</a></li>
|
||||
<li><a href="kollacli/commands/reconfigure.html">kollacli.commands.reconfigure</a></li>
|
||||
<li><a href="kollacli/commands/service.html">kollacli.commands.service</a></li>
|
||||
<li><a href="kollacli/commands/support.html">kollacli.commands.support</a></li>
|
||||
<li><a href="kollacli/commands/upgrade.html">kollacli.commands.upgrade</a></li>
|
||||
@ -113,7 +114,7 @@
|
||||
<li class="right" >
|
||||
<a href="../py-modindex.html" title="Python Module Index"
|
||||
>modules</a> |</li>
|
||||
<li><a href="../index.html">kollacli 4.0.0.dev483 documentation</a> »</li>
|
||||
<li><a href="../index.html">kollacli 4.0.1.dev498 documentation</a> »</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="footer">
|
||||
|
29
doc/build/html/_modules/kollacli/api/client.html
vendored
29
doc/build/html/_modules/kollacli/api/client.html
vendored
@ -6,7 +6,7 @@
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
|
||||
<title>kollacli.api.client — kollacli 4.0.0.dev483 documentation</title>
|
||||
<title>kollacli.api.client — kollacli 4.0.1.dev498 documentation</title>
|
||||
|
||||
<link rel="stylesheet" href="../../../_static/default.css" type="text/css" />
|
||||
<link rel="stylesheet" href="../../../_static/pygments.css" type="text/css" />
|
||||
@ -14,7 +14,7 @@
|
||||
<script type="text/javascript">
|
||||
var DOCUMENTATION_OPTIONS = {
|
||||
URL_ROOT: '../../../',
|
||||
VERSION: '4.0.0.dev483',
|
||||
VERSION: '4.0.1.dev498',
|
||||
COLLAPSE_INDEX: false,
|
||||
FILE_SUFFIX: '.html',
|
||||
HAS_SOURCE: true
|
||||
@ -23,7 +23,7 @@
|
||||
<script type="text/javascript" src="../../../_static/jquery.js"></script>
|
||||
<script type="text/javascript" src="../../../_static/underscore.js"></script>
|
||||
<script type="text/javascript" src="../../../_static/doctools.js"></script>
|
||||
<link rel="top" title="kollacli 4.0.0.dev483 documentation" href="../../../index.html" />
|
||||
<link rel="top" title="kollacli 4.0.1.dev498 documentation" href="../../../index.html" />
|
||||
<link rel="up" title="Module code" href="../../index.html" />
|
||||
</head>
|
||||
<body>
|
||||
@ -36,7 +36,7 @@
|
||||
<li class="right" >
|
||||
<a href="../../../py-modindex.html" title="Python Module Index"
|
||||
>modules</a> |</li>
|
||||
<li><a href="../../../index.html">kollacli 4.0.0.dev483 documentation</a> »</li>
|
||||
<li><a href="../../../index.html">kollacli 4.0.1.dev498 documentation</a> »</li>
|
||||
<li><a href="../../index.html" accesskey="U">Module code</a> »</li>
|
||||
</ul>
|
||||
</div>
|
||||
@ -47,7 +47,7 @@
|
||||
<div class="body">
|
||||
|
||||
<h1>Source code for kollacli.api.client</h1><div class="highlight"><pre>
|
||||
<span></span><span class="c1"># Copyright(c) 2016, Oracle and/or its affiliates. All Rights Reserved.</span>
|
||||
<span></span><span class="c1"># Copyright(c) 2017, Oracle and/or its affiliates. All Rights Reserved.</span>
|
||||
<span class="c1">#</span>
|
||||
<span class="c1"># Licensed under the Apache License, Version 2.0 (the "License"); you may</span>
|
||||
<span class="c1"># not use this file except in compliance with the License. You may obtain</span>
|
||||
@ -68,8 +68,7 @@
|
||||
|
||||
<span class="kn">from</span> <span class="nn">logging.handlers</span> <span class="kn">import</span> <span class="n">RotatingFileHandler</span>
|
||||
|
||||
<span class="kn">from</span> <span class="nn">kollacli.api.async</span> <span class="kn">import</span> <span class="n">AsyncApi</span>
|
||||
<span class="kn">from</span> <span class="nn">kollacli.api.deploy</span> <span class="kn">import</span> <span class="n">DeployApi</span>
|
||||
<span class="kn">from</span> <span class="nn">kollacli.api.control_plane</span> <span class="kn">import</span> <span class="n">ControlPlaneApi</span>
|
||||
<span class="kn">from</span> <span class="nn">kollacli.api.group</span> <span class="kn">import</span> <span class="n">GroupApi</span>
|
||||
<span class="kn">from</span> <span class="nn">kollacli.api.host</span> <span class="kn">import</span> <span class="n">HostApi</span>
|
||||
<span class="kn">from</span> <span class="nn">kollacli.api.password</span> <span class="kn">import</span> <span class="n">PasswordApi</span>
|
||||
@ -83,12 +82,11 @@
|
||||
<span class="s1">'[</span><span class="si">%(asctime)s</span><span class="s1">] </span><span class="si">%(levelname)-8s</span><span class="s1"> </span><span class="si">%(name)s</span><span class="s1"> </span><span class="si">%(message)s</span><span class="s1">'</span>
|
||||
<span class="n">LOG</span> <span class="o">=</span> <span class="bp">None</span>
|
||||
|
||||
<span class="n">VERSION</span> <span class="o">=</span> <span class="s1">'1.0'</span>
|
||||
<span class="n">VERSION</span> <span class="o">=</span> <span class="s1">'2.0'</span>
|
||||
|
||||
|
||||
<div class="viewcode-block" id="ClientApi"><a class="viewcode-back" href="../../../kollacli.api.html#kollacli.api.client.ClientApi">[docs]</a><span class="k">class</span> <span class="nc">ClientApi</span><span class="p">(</span>
|
||||
<span class="n">AsyncApi</span><span class="p">,</span>
|
||||
<span class="n">DeployApi</span><span class="p">,</span>
|
||||
<span class="n">ControlPlaneApi</span><span class="p">,</span>
|
||||
<span class="n">GroupApi</span><span class="p">,</span>
|
||||
<span class="n">HostApi</span><span class="p">,</span>
|
||||
<span class="n">PasswordApi</span><span class="p">,</span>
|
||||
@ -109,14 +107,17 @@
|
||||
<span class="k">def</span> <span class="fm">__init__</span><span class="p">(</span><span class="bp">self</span><span class="p">):</span>
|
||||
<span class="bp">self</span><span class="o">.</span><span class="n">_configure_logging</span><span class="p">()</span>
|
||||
|
||||
<div class="viewcode-block" id="ClientApi.get_version"><a class="viewcode-back" href="../../../kollacli.api.html#kollacli.api.client.ClientApi.get_version">[docs]</a> <span class="k">def</span> <span class="nf">get_version</span><span class="p">(</span><span class="bp">self</span><span class="p">):</span>
|
||||
<span class="nd">@staticmethod</span>
|
||||
<div class="viewcode-block" id="ClientApi.get_version"><a class="viewcode-back" href="../../../kollacli.api.html#kollacli.api.client.ClientApi.get_version">[docs]</a> <span class="k">def</span> <span class="nf">get_version</span><span class="p">():</span>
|
||||
<span class="c1"># type: () -> str</span>
|
||||
<span class="k">return</span> <span class="n">VERSION</span>
|
||||
</div>
|
||||
<div class="viewcode-block" id="ClientApi.base_call"><a class="viewcode-back" href="../../../kollacli.api.html#kollacli.api.client.ClientApi.base_call">[docs]</a> <span class="k">def</span> <span class="nf">base_call</span><span class="p">(</span><span class="bp">self</span><span class="p">):</span>
|
||||
<span class="nd">@staticmethod</span>
|
||||
<div class="viewcode-block" id="ClientApi.base_call"><a class="viewcode-back" href="../../../kollacli.api.html#kollacli.api.client.ClientApi.base_call">[docs]</a> <span class="k">def</span> <span class="nf">base_call</span><span class="p">():</span>
|
||||
<span class="n">LOG</span><span class="o">.</span><span class="n">info</span><span class="p">(</span><span class="s1">'base call'</span><span class="p">)</span>
|
||||
</div>
|
||||
<div class="viewcode-block" id="ClientApi.enable_console_logging"><a class="viewcode-back" href="../../../kollacli.api.html#kollacli.api.client.ClientApi.enable_console_logging">[docs]</a> <span class="k">def</span> <span class="nf">enable_console_logging</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">level</span><span class="p">,</span> <span class="n">enable</span><span class="o">=</span><span class="bp">True</span><span class="p">):</span>
|
||||
<span class="nd">@staticmethod</span>
|
||||
<div class="viewcode-block" id="ClientApi.enable_console_logging"><a class="viewcode-back" href="../../../kollacli.api.html#kollacli.api.client.ClientApi.enable_console_logging">[docs]</a> <span class="k">def</span> <span class="nf">enable_console_logging</span><span class="p">(</span><span class="n">level</span><span class="p">,</span> <span class="n">enable</span><span class="o">=</span><span class="bp">True</span><span class="p">):</span>
|
||||
<span class="c1"># type: (int, bool) -> None</span>
|
||||
<span class="sd">"""enable/disable console logging for the api</span>
|
||||
|
||||
@ -209,7 +210,7 @@
|
||||
<li class="right" >
|
||||
<a href="../../../py-modindex.html" title="Python Module Index"
|
||||
>modules</a> |</li>
|
||||
<li><a href="../../../index.html">kollacli 4.0.0.dev483 documentation</a> »</li>
|
||||
<li><a href="../../../index.html">kollacli 4.0.1.dev498 documentation</a> »</li>
|
||||
<li><a href="../../index.html" >Module code</a> »</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
@ -6,7 +6,7 @@
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
|
||||
<title>kollacli.api.exceptions — kollacli 4.0.0.dev483 documentation</title>
|
||||
<title>kollacli.api.exceptions — kollacli 4.0.1.dev498 documentation</title>
|
||||
|
||||
<link rel="stylesheet" href="../../../_static/default.css" type="text/css" />
|
||||
<link rel="stylesheet" href="../../../_static/pygments.css" type="text/css" />
|
||||
@ -14,7 +14,7 @@
|
||||
<script type="text/javascript">
|
||||
var DOCUMENTATION_OPTIONS = {
|
||||
URL_ROOT: '../../../',
|
||||
VERSION: '4.0.0.dev483',
|
||||
VERSION: '4.0.1.dev498',
|
||||
COLLAPSE_INDEX: false,
|
||||
FILE_SUFFIX: '.html',
|
||||
HAS_SOURCE: true
|
||||
@ -23,7 +23,7 @@
|
||||
<script type="text/javascript" src="../../../_static/jquery.js"></script>
|
||||
<script type="text/javascript" src="../../../_static/underscore.js"></script>
|
||||
<script type="text/javascript" src="../../../_static/doctools.js"></script>
|
||||
<link rel="top" title="kollacli 4.0.0.dev483 documentation" href="../../../index.html" />
|
||||
<link rel="top" title="kollacli 4.0.1.dev498 documentation" href="../../../index.html" />
|
||||
<link rel="up" title="Module code" href="../../index.html" />
|
||||
</head>
|
||||
<body>
|
||||
@ -36,7 +36,7 @@
|
||||
<li class="right" >
|
||||
<a href="../../../py-modindex.html" title="Python Module Index"
|
||||
>modules</a> |</li>
|
||||
<li><a href="../../../index.html">kollacli 4.0.0.dev483 documentation</a> »</li>
|
||||
<li><a href="../../../index.html">kollacli 4.0.1.dev498 documentation</a> »</li>
|
||||
<li><a href="../../index.html" accesskey="U">Module code</a> »</li>
|
||||
</ul>
|
||||
</div>
|
||||
@ -160,7 +160,7 @@
|
||||
<li class="right" >
|
||||
<a href="../../../py-modindex.html" title="Python Module Index"
|
||||
>modules</a> |</li>
|
||||
<li><a href="../../../index.html">kollacli 4.0.0.dev483 documentation</a> »</li>
|
||||
<li><a href="../../../index.html">kollacli 4.0.1.dev498 documentation</a> »</li>
|
||||
<li><a href="../../index.html" >Module code</a> »</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
14
doc/build/html/_modules/kollacli/api/group.html
vendored
14
doc/build/html/_modules/kollacli/api/group.html
vendored
@ -6,7 +6,7 @@
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
|
||||
<title>kollacli.api.group — kollacli 4.0.0.dev483 documentation</title>
|
||||
<title>kollacli.api.group — kollacli 4.0.1.dev498 documentation</title>
|
||||
|
||||
<link rel="stylesheet" href="../../../_static/default.css" type="text/css" />
|
||||
<link rel="stylesheet" href="../../../_static/pygments.css" type="text/css" />
|
||||
@ -14,7 +14,7 @@
|
||||
<script type="text/javascript">
|
||||
var DOCUMENTATION_OPTIONS = {
|
||||
URL_ROOT: '../../../',
|
||||
VERSION: '4.0.0.dev483',
|
||||
VERSION: '4.0.1.dev498',
|
||||
COLLAPSE_INDEX: false,
|
||||
FILE_SUFFIX: '.html',
|
||||
HAS_SOURCE: true
|
||||
@ -23,7 +23,7 @@
|
||||
<script type="text/javascript" src="../../../_static/jquery.js"></script>
|
||||
<script type="text/javascript" src="../../../_static/underscore.js"></script>
|
||||
<script type="text/javascript" src="../../../_static/doctools.js"></script>
|
||||
<link rel="top" title="kollacli 4.0.0.dev483 documentation" href="../../../index.html" />
|
||||
<link rel="top" title="kollacli 4.0.1.dev498 documentation" href="../../../index.html" />
|
||||
<link rel="up" title="Module code" href="../../index.html" />
|
||||
</head>
|
||||
<body>
|
||||
@ -36,7 +36,7 @@
|
||||
<li class="right" >
|
||||
<a href="../../../py-modindex.html" title="Python Module Index"
|
||||
>modules</a> |</li>
|
||||
<li><a href="../../../index.html">kollacli 4.0.0.dev483 documentation</a> »</li>
|
||||
<li><a href="../../../index.html">kollacli 4.0.1.dev498 documentation</a> »</li>
|
||||
<li><a href="../../index.html" accesskey="U">Module code</a> »</li>
|
||||
</ul>
|
||||
</div>
|
||||
@ -177,7 +177,7 @@
|
||||
<span class="n">check_arg</span><span class="p">(</span><span class="n">servicename</span><span class="p">,</span> <span class="n">u</span><span class="o">.</span><span class="n">_</span><span class="p">(</span><span class="s1">'Service name'</span><span class="p">),</span> <span class="nb">str</span><span class="p">)</span>
|
||||
<span class="n">servicename</span> <span class="o">=</span> <span class="n">safe_decode</span><span class="p">(</span><span class="n">servicename</span><span class="p">)</span>
|
||||
<span class="n">inventory</span> <span class="o">=</span> <span class="n">Inventory</span><span class="o">.</span><span class="n">load</span><span class="p">()</span>
|
||||
<span class="n">inventory</span><span class="o">.</span><span class="n">validate_servicenames</span><span class="p">([</span><span class="n">servicename</span><span class="p">])</span>
|
||||
<span class="n">inventory</span><span class="o">.</span><span class="n">validate_servicenames</span><span class="p">([</span><span class="n">servicename</span><span class="p">],</span> <span class="n">client_filter</span><span class="o">=</span><span class="bp">True</span><span class="p">)</span>
|
||||
|
||||
<span class="n">group_services</span> <span class="o">=</span> <span class="n">inventory</span><span class="o">.</span><span class="n">get_group_services</span><span class="p">()</span>
|
||||
<span class="bp">self</span><span class="o">.</span><span class="n">_servicenames</span> <span class="o">=</span> <span class="n">group_services</span><span class="p">[</span><span class="bp">self</span><span class="o">.</span><span class="n">name</span><span class="p">]</span>
|
||||
@ -198,7 +198,7 @@
|
||||
<span class="n">check_arg</span><span class="p">(</span><span class="n">servicename</span><span class="p">,</span> <span class="n">u</span><span class="o">.</span><span class="n">_</span><span class="p">(</span><span class="s1">'Service name'</span><span class="p">),</span> <span class="nb">str</span><span class="p">)</span>
|
||||
<span class="n">servicename</span> <span class="o">=</span> <span class="n">safe_decode</span><span class="p">(</span><span class="n">servicename</span><span class="p">)</span>
|
||||
<span class="n">inventory</span> <span class="o">=</span> <span class="n">Inventory</span><span class="o">.</span><span class="n">load</span><span class="p">()</span>
|
||||
<span class="n">inventory</span><span class="o">.</span><span class="n">validate_servicenames</span><span class="p">([</span><span class="n">servicename</span><span class="p">])</span>
|
||||
<span class="n">inventory</span><span class="o">.</span><span class="n">validate_servicenames</span><span class="p">([</span><span class="n">servicename</span><span class="p">],</span> <span class="n">client_filter</span><span class="o">=</span><span class="bp">True</span><span class="p">)</span>
|
||||
|
||||
<span class="n">group_services</span> <span class="o">=</span> <span class="n">inventory</span><span class="o">.</span><span class="n">get_group_services</span><span class="p">()</span>
|
||||
<span class="bp">self</span><span class="o">.</span><span class="n">_servicenames</span> <span class="o">=</span> <span class="n">group_services</span><span class="p">[</span><span class="bp">self</span><span class="o">.</span><span class="n">name</span><span class="p">]</span>
|
||||
@ -291,7 +291,7 @@
|
||||
<li class="right" >
|
||||
<a href="../../../py-modindex.html" title="Python Module Index"
|
||||
>modules</a> |</li>
|
||||
<li><a href="../../../index.html">kollacli 4.0.0.dev483 documentation</a> »</li>
|
||||
<li><a href="../../../index.html">kollacli 4.0.1.dev498 documentation</a> »</li>
|
||||
<li><a href="../../index.html" >Module code</a> »</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
124
doc/build/html/_modules/kollacli/api/host.html
vendored
124
doc/build/html/_modules/kollacli/api/host.html
vendored
@ -6,7 +6,7 @@
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
|
||||
<title>kollacli.api.host — kollacli 4.0.0.dev483 documentation</title>
|
||||
<title>kollacli.api.host — kollacli 4.0.1.dev498 documentation</title>
|
||||
|
||||
<link rel="stylesheet" href="../../../_static/default.css" type="text/css" />
|
||||
<link rel="stylesheet" href="../../../_static/pygments.css" type="text/css" />
|
||||
@ -14,7 +14,7 @@
|
||||
<script type="text/javascript">
|
||||
var DOCUMENTATION_OPTIONS = {
|
||||
URL_ROOT: '../../../',
|
||||
VERSION: '4.0.0.dev483',
|
||||
VERSION: '4.0.1.dev498',
|
||||
COLLAPSE_INDEX: false,
|
||||
FILE_SUFFIX: '.html',
|
||||
HAS_SOURCE: true
|
||||
@ -23,7 +23,7 @@
|
||||
<script type="text/javascript" src="../../../_static/jquery.js"></script>
|
||||
<script type="text/javascript" src="../../../_static/underscore.js"></script>
|
||||
<script type="text/javascript" src="../../../_static/doctools.js"></script>
|
||||
<link rel="top" title="kollacli 4.0.0.dev483 documentation" href="../../../index.html" />
|
||||
<link rel="top" title="kollacli 4.0.1.dev498 documentation" href="../../../index.html" />
|
||||
<link rel="up" title="Module code" href="../../index.html" />
|
||||
</head>
|
||||
<body>
|
||||
@ -36,7 +36,7 @@
|
||||
<li class="right" >
|
||||
<a href="../../../py-modindex.html" title="Python Module Index"
|
||||
>modules</a> |</li>
|
||||
<li><a href="../../../index.html">kollacli 4.0.0.dev483 documentation</a> »</li>
|
||||
<li><a href="../../../index.html">kollacli 4.0.1.dev498 documentation</a> »</li>
|
||||
<li><a href="../../index.html" accesskey="U">Module code</a> »</li>
|
||||
</ul>
|
||||
</div>
|
||||
@ -47,7 +47,7 @@
|
||||
<div class="body">
|
||||
|
||||
<h1>Source code for kollacli.api.host</h1><div class="highlight"><pre>
|
||||
<span></span><span class="c1"># Copyright(c) 2016, Oracle and/or its affiliates. All Rights Reserved.</span>
|
||||
<span></span><span class="c1"># Copyright(c) 2017, Oracle and/or its affiliates. All Rights Reserved.</span>
|
||||
<span class="c1">#</span>
|
||||
<span class="c1"># Licensed under the Apache License, Version 2.0 (the "License"); you may</span>
|
||||
<span class="c1"># not use this file except in compliance with the License. You may obtain</span>
|
||||
@ -63,6 +63,9 @@
|
||||
<span class="kn">from</span> <span class="nn">copy</span> <span class="kn">import</span> <span class="n">copy</span>
|
||||
<span class="kn">import</span> <span class="nn">kollacli.i18n</span> <span class="kn">as</span> <span class="nn">u</span>
|
||||
|
||||
<span class="kn">from</span> <span class="nn">kollacli.api.exceptions</span> <span class="kn">import</span> <span class="n">InvalidArgument</span>
|
||||
<span class="kn">from</span> <span class="nn">kollacli.api.job</span> <span class="kn">import</span> <span class="n">Job</span>
|
||||
<span class="kn">from</span> <span class="nn">kollacli.common.ansible</span> <span class="kn">import</span> <span class="n">actions</span>
|
||||
<span class="kn">from</span> <span class="nn">kollacli.common.inventory</span> <span class="kn">import</span> <span class="n">Inventory</span>
|
||||
<span class="kn">from</span> <span class="nn">kollacli.common.utils</span> <span class="kn">import</span> <span class="n">check_arg</span>
|
||||
<span class="kn">from</span> <span class="nn">kollacli.common.utils</span> <span class="kn">import</span> <span class="n">safe_decode</span>
|
||||
@ -70,7 +73,8 @@
|
||||
|
||||
<div class="viewcode-block" id="HostApi"><a class="viewcode-back" href="../../../kollacli.api.html#kollacli.api.host.HostApi">[docs]</a><span class="k">class</span> <span class="nc">HostApi</span><span class="p">(</span><span class="nb">object</span><span class="p">):</span>
|
||||
|
||||
<div class="viewcode-block" id="HostApi.host_add"><a class="viewcode-back" href="../../../kollacli.api.html#kollacli.api.host.HostApi.host_add">[docs]</a> <span class="k">def</span> <span class="nf">host_add</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">hostnames</span><span class="p">):</span>
|
||||
<span class="nd">@staticmethod</span>
|
||||
<div class="viewcode-block" id="HostApi.host_add"><a class="viewcode-back" href="../../../kollacli.api.html#kollacli.api.host.HostApi.host_add">[docs]</a> <span class="k">def</span> <span class="nf">host_add</span><span class="p">(</span><span class="n">hostnames</span><span class="p">):</span>
|
||||
<span class="c1"># type: (List[str]) -> None</span>
|
||||
<span class="sd">"""Add hosts to the inventory</span>
|
||||
|
||||
@ -88,7 +92,8 @@
|
||||
<span class="k">if</span> <span class="n">any_changed</span><span class="p">:</span>
|
||||
<span class="n">Inventory</span><span class="o">.</span><span class="n">save</span><span class="p">(</span><span class="n">inventory</span><span class="p">)</span>
|
||||
</div>
|
||||
<div class="viewcode-block" id="HostApi.host_remove"><a class="viewcode-back" href="../../../kollacli.api.html#kollacli.api.host.HostApi.host_remove">[docs]</a> <span class="k">def</span> <span class="nf">host_remove</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">hostnames</span><span class="p">):</span>
|
||||
<span class="nd">@staticmethod</span>
|
||||
<div class="viewcode-block" id="HostApi.host_remove"><a class="viewcode-back" href="../../../kollacli.api.html#kollacli.api.host.HostApi.host_remove">[docs]</a> <span class="k">def</span> <span class="nf">host_remove</span><span class="p">(</span><span class="n">hostnames</span><span class="p">):</span>
|
||||
<span class="c1"># type: (List[str]) -> None</span>
|
||||
<span class="sd">"""Remove hosts from the inventory</span>
|
||||
|
||||
@ -106,7 +111,8 @@
|
||||
<span class="k">if</span> <span class="n">any_changed</span><span class="p">:</span>
|
||||
<span class="n">Inventory</span><span class="o">.</span><span class="n">save</span><span class="p">(</span><span class="n">inventory</span><span class="p">)</span>
|
||||
</div>
|
||||
<div class="viewcode-block" id="HostApi.host_get_all"><a class="viewcode-back" href="../../../kollacli.api.html#kollacli.api.host.HostApi.host_get_all">[docs]</a> <span class="k">def</span> <span class="nf">host_get_all</span><span class="p">(</span><span class="bp">self</span><span class="p">):</span>
|
||||
<span class="nd">@staticmethod</span>
|
||||
<div class="viewcode-block" id="HostApi.host_get_all"><a class="viewcode-back" href="../../../kollacli.api.html#kollacli.api.host.HostApi.host_get_all">[docs]</a> <span class="k">def</span> <span class="nf">host_get_all</span><span class="p">():</span>
|
||||
<span class="c1"># type: () -> List[Host]</span>
|
||||
<span class="sd">"""Get all hosts in the inventory</span>
|
||||
|
||||
@ -120,7 +126,8 @@
|
||||
<span class="n">hosts</span><span class="o">.</span><span class="n">append</span><span class="p">(</span><span class="n">Host</span><span class="p">(</span><span class="n">hostname</span><span class="p">,</span> <span class="n">groupnames</span><span class="p">))</span>
|
||||
<span class="k">return</span> <span class="n">hosts</span>
|
||||
</div>
|
||||
<div class="viewcode-block" id="HostApi.host_get"><a class="viewcode-back" href="../../../kollacli.api.html#kollacli.api.host.HostApi.host_get">[docs]</a> <span class="k">def</span> <span class="nf">host_get</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">hostnames</span><span class="p">):</span>
|
||||
<span class="nd">@staticmethod</span>
|
||||
<div class="viewcode-block" id="HostApi.host_get"><a class="viewcode-back" href="../../../kollacli.api.html#kollacli.api.host.HostApi.host_get">[docs]</a> <span class="k">def</span> <span class="nf">host_get</span><span class="p">(</span><span class="n">hostnames</span><span class="p">):</span>
|
||||
<span class="c1"># type: (List[str]) -> List[Host]</span>
|
||||
<span class="sd">"""Get selected hosts in the inventory</span>
|
||||
|
||||
@ -139,7 +146,8 @@
|
||||
<span class="n">hosts</span><span class="o">.</span><span class="n">append</span><span class="p">(</span><span class="n">Host</span><span class="p">(</span><span class="n">hostname</span><span class="p">,</span> <span class="n">host_groups</span><span class="p">[</span><span class="n">hostname</span><span class="p">]))</span>
|
||||
<span class="k">return</span> <span class="n">hosts</span>
|
||||
</div>
|
||||
<div class="viewcode-block" id="HostApi.host_ssh_check"><a class="viewcode-back" href="../../../kollacli.api.html#kollacli.api.host.HostApi.host_ssh_check">[docs]</a> <span class="k">def</span> <span class="nf">host_ssh_check</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">hostnames</span><span class="p">):</span>
|
||||
<span class="nd">@staticmethod</span>
|
||||
<div class="viewcode-block" id="HostApi.host_ssh_check"><a class="viewcode-back" href="../../../kollacli.api.html#kollacli.api.host.HostApi.host_ssh_check">[docs]</a> <span class="k">def</span> <span class="nf">host_ssh_check</span><span class="p">(</span><span class="n">hostnames</span><span class="p">):</span>
|
||||
<span class="c1"># type: (List[str]) -> Dict[str,Dict[str,object]]</span>
|
||||
<span class="sd">"""Check hosts for ssh connectivity</span>
|
||||
|
||||
@ -161,7 +169,8 @@
|
||||
<span class="n">summary</span> <span class="o">=</span> <span class="n">inventory</span><span class="o">.</span><span class="n">ssh_check_hosts</span><span class="p">(</span><span class="n">hostnames</span><span class="p">)</span>
|
||||
<span class="k">return</span> <span class="n">summary</span>
|
||||
</div>
|
||||
<div class="viewcode-block" id="HostApi.host_setup"><a class="viewcode-back" href="../../../kollacli.api.html#kollacli.api.host.HostApi.host_setup">[docs]</a> <span class="k">def</span> <span class="nf">host_setup</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">hosts_info</span><span class="p">):</span>
|
||||
<span class="nd">@staticmethod</span>
|
||||
<div class="viewcode-block" id="HostApi.host_setup"><a class="viewcode-back" href="../../../kollacli.api.html#kollacli.api.host.HostApi.host_setup">[docs]</a> <span class="k">def</span> <span class="nf">host_setup</span><span class="p">(</span><span class="n">hosts_info</span><span class="p">):</span>
|
||||
<span class="c1"># type: (Dict[str,Dict[str,object]]) -> None</span>
|
||||
<span class="sd">"""Setup multiple hosts for ssh access</span>
|
||||
|
||||
@ -180,12 +189,101 @@
|
||||
<span class="n">inventory</span> <span class="o">=</span> <span class="n">Inventory</span><span class="o">.</span><span class="n">load</span><span class="p">()</span>
|
||||
<span class="n">inventory</span><span class="o">.</span><span class="n">validate_hostnames</span><span class="p">(</span><span class="n">hosts_info</span><span class="o">.</span><span class="n">keys</span><span class="p">())</span>
|
||||
<span class="n">inventory</span><span class="o">.</span><span class="n">setup_hosts</span><span class="p">(</span><span class="n">hosts_info</span><span class="p">)</span>
|
||||
</div>
|
||||
<span class="nd">@staticmethod</span>
|
||||
<div class="viewcode-block" id="HostApi.host_destroy"><a class="viewcode-back" href="../../../kollacli.api.html#kollacli.api.host.HostApi.host_destroy">[docs]</a> <span class="k">def</span> <span class="nf">host_destroy</span><span class="p">(</span><span class="n">hostnames</span><span class="p">,</span> <span class="n">destroy_type</span><span class="p">,</span> <span class="n">verbose_level</span><span class="o">=</span><span class="mi">1</span><span class="p">,</span>
|
||||
<span class="n">include_data</span><span class="o">=</span><span class="bp">False</span><span class="p">,</span> <span class="n">remove_images</span><span class="o">=</span><span class="bp">False</span><span class="p">):</span>
|
||||
<span class="c1"># type: (List[str], str, int, bool, bool) -> Job</span>
|
||||
<span class="sd">"""Destroy Hosts.</span>
|
||||
|
||||
<span class="sd"> Stops and removes all kolla related docker containers on the</span>
|
||||
<span class="sd"> specified hosts.</span>
|
||||
|
||||
<span class="sd"> :param hostnames: host names</span>
|
||||
<span class="sd"> :type hostnames: list</span>
|
||||
<span class="sd"> :param destroy_type: either 'kill' or 'stop'</span>
|
||||
<span class="sd"> :type destroy_type: string</span>
|
||||
<span class="sd"> :param verbose_level: the higher the number, the more verbose</span>
|
||||
<span class="sd"> :type verbose_level: integer</span>
|
||||
<span class="sd"> :param include_data: if true, destroy data containers too.</span>
|
||||
<span class="sd"> :type include_data: boolean</span>
|
||||
<span class="sd"> :param remove_images: if true, destroy will remove the docker images</span>
|
||||
<span class="sd"> :type remove_images: boolean</span>
|
||||
<span class="sd"> :return: Job object</span>
|
||||
<span class="sd"> :rtype: Job</span>
|
||||
<span class="sd"> """</span>
|
||||
<span class="n">check_arg</span><span class="p">(</span><span class="n">hostnames</span><span class="p">,</span> <span class="n">u</span><span class="o">.</span><span class="n">_</span><span class="p">(</span><span class="s1">'Host names'</span><span class="p">),</span> <span class="nb">list</span><span class="p">)</span>
|
||||
<span class="n">check_arg</span><span class="p">(</span><span class="n">destroy_type</span><span class="p">,</span> <span class="n">u</span><span class="o">.</span><span class="n">_</span><span class="p">(</span><span class="s1">'Destroy type'</span><span class="p">),</span> <span class="nb">str</span><span class="p">)</span>
|
||||
<span class="n">check_arg</span><span class="p">(</span><span class="n">verbose_level</span><span class="p">,</span> <span class="n">u</span><span class="o">.</span><span class="n">_</span><span class="p">(</span><span class="s1">'Verbose level'</span><span class="p">),</span> <span class="nb">int</span><span class="p">)</span>
|
||||
<span class="n">check_arg</span><span class="p">(</span><span class="n">include_data</span><span class="p">,</span> <span class="n">u</span><span class="o">.</span><span class="n">_</span><span class="p">(</span><span class="s1">'Include data'</span><span class="p">),</span> <span class="nb">bool</span><span class="p">)</span>
|
||||
<span class="n">check_arg</span><span class="p">(</span><span class="n">remove_images</span><span class="p">,</span> <span class="n">u</span><span class="o">.</span><span class="n">_</span><span class="p">(</span><span class="s1">'Remove images'</span><span class="p">),</span> <span class="nb">bool</span><span class="p">)</span>
|
||||
<span class="k">if</span> <span class="n">destroy_type</span> <span class="ow">not</span> <span class="ow">in</span> <span class="p">[</span><span class="s1">'stop'</span><span class="p">,</span> <span class="s1">'kill'</span><span class="p">]:</span>
|
||||
<span class="k">raise</span> <span class="n">InvalidArgument</span><span class="p">(</span>
|
||||
<span class="n">u</span><span class="o">.</span><span class="n">_</span><span class="p">(</span><span class="s1">'Invalid destroy type ({type}). Must be either '</span>
|
||||
<span class="s1">'"stop" or "kill".'</span><span class="p">)</span><span class="o">.</span><span class="n">format</span><span class="p">(</span><span class="nb">type</span><span class="o">=</span><span class="n">destroy_type</span><span class="p">))</span>
|
||||
|
||||
<span class="n">hostnames</span> <span class="o">=</span> <span class="n">safe_decode</span><span class="p">(</span><span class="n">hostnames</span><span class="p">)</span>
|
||||
<span class="n">inventory</span> <span class="o">=</span> <span class="n">Inventory</span><span class="o">.</span><span class="n">load</span><span class="p">()</span>
|
||||
<span class="n">inventory</span><span class="o">.</span><span class="n">validate_hostnames</span><span class="p">(</span><span class="n">hostnames</span><span class="p">)</span>
|
||||
|
||||
<span class="n">ansible_job</span> <span class="o">=</span> <span class="n">actions</span><span class="o">.</span><span class="n">destroy_hosts</span><span class="p">(</span><span class="n">hostnames</span><span class="p">,</span> <span class="n">destroy_type</span><span class="p">,</span>
|
||||
<span class="n">verbose_level</span><span class="p">,</span> <span class="n">include_data</span><span class="p">,</span>
|
||||
<span class="n">remove_images</span><span class="p">)</span>
|
||||
<span class="k">return</span> <span class="n">Job</span><span class="p">(</span><span class="n">ansible_job</span><span class="p">)</span>
|
||||
</div>
|
||||
<span class="nd">@staticmethod</span>
|
||||
<div class="viewcode-block" id="HostApi.host_precheck"><a class="viewcode-back" href="../../../kollacli.api.html#kollacli.api.host.HostApi.host_precheck">[docs]</a> <span class="k">def</span> <span class="nf">host_precheck</span><span class="p">(</span><span class="n">hostnames</span><span class="p">,</span> <span class="n">verbose_level</span><span class="o">=</span><span class="mi">1</span><span class="p">):</span>
|
||||
<span class="c1"># type: (List[str], int) -> Job</span>
|
||||
<span class="sd">"""Check pre-deployment configuration of hosts.</span>
|
||||
|
||||
<span class="sd"> Check if host is ready for a new deployment. This will fail if</span>
|
||||
<span class="sd"> any of the hosts are not configured correctly or if they have</span>
|
||||
<span class="sd"> already been deployed to.</span>
|
||||
<span class="sd"> :param hostnames: host names</span>
|
||||
<span class="sd"> :type hostnames: list</span>
|
||||
<span class="sd"> :param verbose_level: the higher the number, the more verbose</span>
|
||||
<span class="sd"> :type verbose_level: integer</span>
|
||||
<span class="sd"> :return: Job object</span>
|
||||
<span class="sd"> :rtype: Job</span>
|
||||
<span class="sd"> """</span>
|
||||
<span class="n">check_arg</span><span class="p">(</span><span class="n">hostnames</span><span class="p">,</span> <span class="n">u</span><span class="o">.</span><span class="n">_</span><span class="p">(</span><span class="s1">'Host names'</span><span class="p">),</span> <span class="nb">list</span><span class="p">)</span>
|
||||
<span class="n">check_arg</span><span class="p">(</span><span class="n">verbose_level</span><span class="p">,</span> <span class="n">u</span><span class="o">.</span><span class="n">_</span><span class="p">(</span><span class="s1">'Verbose level'</span><span class="p">),</span> <span class="nb">int</span><span class="p">)</span>
|
||||
<span class="n">hostnames</span> <span class="o">=</span> <span class="n">safe_decode</span><span class="p">(</span><span class="n">hostnames</span><span class="p">)</span>
|
||||
<span class="n">inventory</span> <span class="o">=</span> <span class="n">Inventory</span><span class="o">.</span><span class="n">load</span><span class="p">()</span>
|
||||
<span class="n">inventory</span><span class="o">.</span><span class="n">validate_hostnames</span><span class="p">(</span><span class="n">hostnames</span><span class="p">)</span>
|
||||
|
||||
<span class="n">ansible_job</span> <span class="o">=</span> <span class="n">actions</span><span class="o">.</span><span class="n">precheck</span><span class="p">(</span><span class="n">hostnames</span><span class="p">,</span> <span class="n">verbose_level</span><span class="p">)</span>
|
||||
<span class="k">return</span> <span class="n">Job</span><span class="p">(</span><span class="n">ansible_job</span><span class="p">)</span>
|
||||
</div>
|
||||
<span class="nd">@staticmethod</span>
|
||||
<div class="viewcode-block" id="HostApi.host_stop"><a class="viewcode-back" href="../../../kollacli.api.html#kollacli.api.host.HostApi.host_stop">[docs]</a> <span class="k">def</span> <span class="nf">host_stop</span><span class="p">(</span><span class="n">hostnames</span><span class="p">,</span> <span class="n">verbose_level</span><span class="o">=</span><span class="mi">1</span><span class="p">):</span>
|
||||
<span class="c1"># type: (List[str], int) -> Job</span>
|
||||
<span class="sd">"""Stop Hosts.</span>
|
||||
|
||||
<span class="sd"> Stops all kolla related docker containers on the specified hosts.</span>
|
||||
|
||||
<span class="sd"> :param hostnames: host names</span>
|
||||
<span class="sd"> :type hostnames: list</span>
|
||||
<span class="sd"> :param verbose_level: the higher the number, the more verbose</span>
|
||||
<span class="sd"> :type verbose_level: integer</span>
|
||||
<span class="sd"> :return: Job object</span>
|
||||
<span class="sd"> :rtype: Job</span>
|
||||
<span class="sd"> """</span>
|
||||
<span class="n">check_arg</span><span class="p">(</span><span class="n">hostnames</span><span class="p">,</span> <span class="n">u</span><span class="o">.</span><span class="n">_</span><span class="p">(</span><span class="s1">'Host names'</span><span class="p">),</span> <span class="nb">list</span><span class="p">)</span>
|
||||
<span class="n">check_arg</span><span class="p">(</span><span class="n">verbose_level</span><span class="p">,</span> <span class="n">u</span><span class="o">.</span><span class="n">_</span><span class="p">(</span><span class="s1">'Verbose level'</span><span class="p">),</span> <span class="nb">int</span><span class="p">)</span>
|
||||
|
||||
<span class="n">hostnames</span> <span class="o">=</span> <span class="n">safe_decode</span><span class="p">(</span><span class="n">hostnames</span><span class="p">)</span>
|
||||
<span class="n">inventory</span> <span class="o">=</span> <span class="n">Inventory</span><span class="o">.</span><span class="n">load</span><span class="p">()</span>
|
||||
<span class="n">inventory</span><span class="o">.</span><span class="n">validate_hostnames</span><span class="p">(</span><span class="n">hostnames</span><span class="p">)</span>
|
||||
|
||||
<span class="n">ansible_job</span> <span class="o">=</span> <span class="n">actions</span><span class="o">.</span><span class="n">stop_hosts</span><span class="p">(</span><span class="n">hostnames</span><span class="p">,</span> <span class="n">verbose_level</span><span class="p">)</span>
|
||||
<span class="k">return</span> <span class="n">Job</span><span class="p">(</span><span class="n">ansible_job</span><span class="p">)</span>
|
||||
|
||||
</div></div>
|
||||
<div class="viewcode-block" id="Host"><a class="viewcode-back" href="../../../kollacli.api.html#kollacli.api.host.Host">[docs]</a><span class="k">class</span> <span class="nc">Host</span><span class="p">(</span><span class="nb">object</span><span class="p">):</span>
|
||||
<span class="sd">"""Host"""</span>
|
||||
|
||||
<span class="k">def</span> <span class="fm">__init__</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">hostname</span><span class="p">,</span> <span class="n">groupnames</span><span class="p">):</span>
|
||||
<span class="k">def</span> <span class="fm">__init__</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">hostname</span><span class="p">,</span> <span class="n">groupnames</span><span class="o">=</span><span class="p">[]):</span>
|
||||
<span class="c1"># type: (str, List[str]) -> None</span>
|
||||
<span class="bp">self</span><span class="o">.</span><span class="n">name</span> <span class="o">=</span> <span class="n">hostname</span>
|
||||
<span class="bp">self</span><span class="o">.</span><span class="n">_groupnames</span> <span class="o">=</span> <span class="n">groupnames</span>
|
||||
@ -244,7 +342,7 @@
|
||||
<li class="right" >
|
||||
<a href="../../../py-modindex.html" title="Python Module Index"
|
||||
>modules</a> |</li>
|
||||
<li><a href="../../../index.html">kollacli 4.0.0.dev483 documentation</a> »</li>
|
||||
<li><a href="../../../index.html">kollacli 4.0.1.dev498 documentation</a> »</li>
|
||||
<li><a href="../../index.html" >Module code</a> »</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
10
doc/build/html/_modules/kollacli/api/job.html
vendored
10
doc/build/html/_modules/kollacli/api/job.html
vendored
@ -6,7 +6,7 @@
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
|
||||
<title>kollacli.api.job — kollacli 4.0.0.dev483 documentation</title>
|
||||
<title>kollacli.api.job — kollacli 4.0.1.dev498 documentation</title>
|
||||
|
||||
<link rel="stylesheet" href="../../../_static/default.css" type="text/css" />
|
||||
<link rel="stylesheet" href="../../../_static/pygments.css" type="text/css" />
|
||||
@ -14,7 +14,7 @@
|
||||
<script type="text/javascript">
|
||||
var DOCUMENTATION_OPTIONS = {
|
||||
URL_ROOT: '../../../',
|
||||
VERSION: '4.0.0.dev483',
|
||||
VERSION: '4.0.1.dev498',
|
||||
COLLAPSE_INDEX: false,
|
||||
FILE_SUFFIX: '.html',
|
||||
HAS_SOURCE: true
|
||||
@ -23,7 +23,7 @@
|
||||
<script type="text/javascript" src="../../../_static/jquery.js"></script>
|
||||
<script type="text/javascript" src="../../../_static/underscore.js"></script>
|
||||
<script type="text/javascript" src="../../../_static/doctools.js"></script>
|
||||
<link rel="top" title="kollacli 4.0.0.dev483 documentation" href="../../../index.html" />
|
||||
<link rel="top" title="kollacli 4.0.1.dev498 documentation" href="../../../index.html" />
|
||||
<link rel="up" title="Module code" href="../../index.html" />
|
||||
</head>
|
||||
<body>
|
||||
@ -36,7 +36,7 @@
|
||||
<li class="right" >
|
||||
<a href="../../../py-modindex.html" title="Python Module Index"
|
||||
>modules</a> |</li>
|
||||
<li><a href="../../../index.html">kollacli 4.0.0.dev483 documentation</a> »</li>
|
||||
<li><a href="../../../index.html">kollacli 4.0.1.dev498 documentation</a> »</li>
|
||||
<li><a href="../../index.html" accesskey="U">Module code</a> »</li>
|
||||
</ul>
|
||||
</div>
|
||||
@ -142,7 +142,7 @@
|
||||
<li class="right" >
|
||||
<a href="../../../py-modindex.html" title="Python Module Index"
|
||||
>modules</a> |</li>
|
||||
<li><a href="../../../index.html">kollacli 4.0.0.dev483 documentation</a> »</li>
|
||||
<li><a href="../../../index.html">kollacli 4.0.1.dev498 documentation</a> »</li>
|
||||
<li><a href="../../index.html" >Module code</a> »</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
@ -6,7 +6,7 @@
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
|
||||
<title>kollacli.api.password — kollacli 4.0.0.dev483 documentation</title>
|
||||
<title>kollacli.api.password — kollacli 4.0.1.dev498 documentation</title>
|
||||
|
||||
<link rel="stylesheet" href="../../../_static/default.css" type="text/css" />
|
||||
<link rel="stylesheet" href="../../../_static/pygments.css" type="text/css" />
|
||||
@ -14,7 +14,7 @@
|
||||
<script type="text/javascript">
|
||||
var DOCUMENTATION_OPTIONS = {
|
||||
URL_ROOT: '../../../',
|
||||
VERSION: '4.0.0.dev483',
|
||||
VERSION: '4.0.1.dev498',
|
||||
COLLAPSE_INDEX: false,
|
||||
FILE_SUFFIX: '.html',
|
||||
HAS_SOURCE: true
|
||||
@ -23,7 +23,7 @@
|
||||
<script type="text/javascript" src="../../../_static/jquery.js"></script>
|
||||
<script type="text/javascript" src="../../../_static/underscore.js"></script>
|
||||
<script type="text/javascript" src="../../../_static/doctools.js"></script>
|
||||
<link rel="top" title="kollacli 4.0.0.dev483 documentation" href="../../../index.html" />
|
||||
<link rel="top" title="kollacli 4.0.1.dev498 documentation" href="../../../index.html" />
|
||||
<link rel="up" title="Module code" href="../../index.html" />
|
||||
</head>
|
||||
<body>
|
||||
@ -36,7 +36,7 @@
|
||||
<li class="right" >
|
||||
<a href="../../../py-modindex.html" title="Python Module Index"
|
||||
>modules</a> |</li>
|
||||
<li><a href="../../../index.html">kollacli 4.0.0.dev483 documentation</a> »</li>
|
||||
<li><a href="../../../index.html">kollacli 4.0.1.dev498 documentation</a> »</li>
|
||||
<li><a href="../../index.html" accesskey="U">Module code</a> »</li>
|
||||
</ul>
|
||||
</div>
|
||||
@ -162,7 +162,7 @@
|
||||
<li class="right" >
|
||||
<a href="../../../py-modindex.html" title="Python Module Index"
|
||||
>modules</a> |</li>
|
||||
<li><a href="../../../index.html">kollacli 4.0.0.dev483 documentation</a> »</li>
|
||||
<li><a href="../../../index.html">kollacli 4.0.1.dev498 documentation</a> »</li>
|
||||
<li><a href="../../index.html" >Module code</a> »</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
@ -6,7 +6,7 @@
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
|
||||
<title>kollacli.api.properties — kollacli 4.0.0.dev483 documentation</title>
|
||||
<title>kollacli.api.properties — kollacli 4.0.1.dev498 documentation</title>
|
||||
|
||||
<link rel="stylesheet" href="../../../_static/default.css" type="text/css" />
|
||||
<link rel="stylesheet" href="../../../_static/pygments.css" type="text/css" />
|
||||
@ -14,7 +14,7 @@
|
||||
<script type="text/javascript">
|
||||
var DOCUMENTATION_OPTIONS = {
|
||||
URL_ROOT: '../../../',
|
||||
VERSION: '4.0.0.dev483',
|
||||
VERSION: '4.0.1.dev498',
|
||||
COLLAPSE_INDEX: false,
|
||||
FILE_SUFFIX: '.html',
|
||||
HAS_SOURCE: true
|
||||
@ -23,7 +23,7 @@
|
||||
<script type="text/javascript" src="../../../_static/jquery.js"></script>
|
||||
<script type="text/javascript" src="../../../_static/underscore.js"></script>
|
||||
<script type="text/javascript" src="../../../_static/doctools.js"></script>
|
||||
<link rel="top" title="kollacli 4.0.0.dev483 documentation" href="../../../index.html" />
|
||||
<link rel="top" title="kollacli 4.0.1.dev498 documentation" href="../../../index.html" />
|
||||
<link rel="up" title="Module code" href="../../index.html" />
|
||||
</head>
|
||||
<body>
|
||||
@ -36,7 +36,7 @@
|
||||
<li class="right" >
|
||||
<a href="../../../py-modindex.html" title="Python Module Index"
|
||||
>modules</a> |</li>
|
||||
<li><a href="../../../index.html">kollacli 4.0.0.dev483 documentation</a> »</li>
|
||||
<li><a href="../../../index.html">kollacli 4.0.1.dev498 documentation</a> »</li>
|
||||
<li><a href="../../index.html" accesskey="U">Module code</a> »</li>
|
||||
</ul>
|
||||
</div>
|
||||
@ -61,6 +61,7 @@
|
||||
<span class="c1"># License for the specific language governing permissions and limitations</span>
|
||||
<span class="c1"># under the License.</span>
|
||||
<span class="kn">import</span> <span class="nn">logging</span>
|
||||
<span class="kn">import</span> <span class="nn">yaml</span>
|
||||
|
||||
<span class="kn">import</span> <span class="nn">kollacli.i18n</span> <span class="kn">as</span> <span class="nn">u</span>
|
||||
|
||||
@ -93,21 +94,30 @@
|
||||
<span class="sd"> :type change_set: list of strings</span>
|
||||
|
||||
<span class="sd"> """</span>
|
||||
<span class="n">ansible_properties</span> <span class="o">=</span> <span class="n">AnsibleProperties</span><span class="p">()</span>
|
||||
<span class="k">for</span> <span class="n">key</span><span class="p">,</span> <span class="n">value</span> <span class="ow">in</span> <span class="n">property_dict</span><span class="o">.</span><span class="n">items</span><span class="p">():</span>
|
||||
<span class="n">check_arg</span><span class="p">(</span><span class="n">key</span><span class="p">,</span> <span class="n">u</span><span class="o">.</span><span class="n">_</span><span class="p">(</span><span class="s1">'Property Key'</span><span class="p">),</span> <span class="nb">str</span><span class="p">)</span>
|
||||
<span class="n">current_property</span> <span class="o">=</span> <span class="n">ansible_properties</span><span class="o">.</span><span class="n">get_property</span><span class="p">(</span><span class="n">key</span><span class="p">)</span>
|
||||
<span class="k">if</span> <span class="n">current_property</span> <span class="ow">is</span> <span class="ow">not</span> <span class="bp">None</span><span class="p">:</span>
|
||||
<span class="n">current_property_type</span> <span class="o">=</span> <span class="n">current_property</span><span class="o">.</span><span class="n">value_type</span>
|
||||
<span class="k">if</span> <span class="n">current_property_type</span> <span class="ow">is</span> <span class="ow">not</span> <span class="nb">str</span><span class="p">:</span>
|
||||
<span class="n">value</span> <span class="o">=</span> <span class="n">yaml</span><span class="o">.</span><span class="n">safe_load</span><span class="p">(</span><span class="n">value</span><span class="p">)</span>
|
||||
<span class="k">if</span> <span class="n">current_property</span><span class="o">.</span><span class="n">value</span> <span class="ow">is</span> <span class="bp">None</span><span class="p">:</span>
|
||||
<span class="n">current_property_type</span> <span class="o">=</span> <span class="bp">None</span>
|
||||
<span class="n">check_arg</span><span class="p">(</span><span class="n">value</span><span class="p">,</span> <span class="n">u</span><span class="o">.</span><span class="n">_</span><span class="p">(</span><span class="s1">'Property Value'</span><span class="p">),</span>
|
||||
<span class="n">current_property_type</span><span class="p">,</span> <span class="n">empty_ok</span><span class="o">=</span><span class="bp">True</span><span class="p">)</span>
|
||||
<span class="n">property_dict</span><span class="p">[</span><span class="n">key</span><span class="p">]</span> <span class="o">=</span> <span class="n">value</span>
|
||||
<span class="k">else</span><span class="p">:</span>
|
||||
<span class="n">check_arg</span><span class="p">(</span><span class="n">value</span><span class="p">,</span> <span class="n">u</span><span class="o">.</span><span class="n">_</span><span class="p">(</span><span class="s1">'Property Value'</span><span class="p">),</span> <span class="nb">str</span><span class="p">,</span> <span class="n">empty_ok</span><span class="o">=</span><span class="bp">True</span><span class="p">)</span>
|
||||
<span class="k">if</span> <span class="s1">'"'</span> <span class="ow">in</span> <span class="n">value</span><span class="p">:</span>
|
||||
<span class="k">if</span> <span class="nb">type</span><span class="p">(</span><span class="n">value</span><span class="p">)</span> <span class="ow">is</span> <span class="nb">str</span> <span class="ow">and</span> <span class="s1">'"'</span> <span class="ow">in</span> <span class="n">value</span><span class="p">:</span>
|
||||
<span class="k">raise</span> <span class="n">InvalidArgument</span><span class="p">(</span><span class="n">u</span><span class="o">.</span><span class="n">_</span><span class="p">(</span><span class="s1">'Cannot use double quotes in '</span>
|
||||
<span class="s1">'a property value.'</span><span class="p">))</span>
|
||||
<span class="n">property_dict</span> <span class="o">=</span> <span class="n">safe_decode</span><span class="p">(</span><span class="n">property_dict</span><span class="p">)</span>
|
||||
|
||||
<span class="bp">self</span><span class="o">.</span><span class="n">_check_type</span><span class="p">(</span><span class="n">property_type</span><span class="p">)</span>
|
||||
<span class="k">if</span> <span class="n">property_type</span> <span class="ow">is</span> <span class="ow">not</span> <span class="n">GLOBAL_TYPE</span><span class="p">:</span>
|
||||
<span class="n">check_arg</span><span class="p">(</span><span class="n">change_set</span><span class="p">,</span> <span class="n">u</span><span class="o">.</span><span class="n">_</span><span class="p">(</span><span class="s1">'Change Set'</span><span class="p">),</span> <span class="nb">list</span><span class="p">,</span> <span class="n">none_ok</span><span class="o">=</span><span class="bp">True</span><span class="p">)</span>
|
||||
<span class="n">change_set</span> <span class="o">=</span> <span class="n">safe_decode</span><span class="p">(</span><span class="n">change_set</span><span class="p">)</span>
|
||||
|
||||
<span class="n">ansible_properties</span> <span class="o">=</span> <span class="n">AnsibleProperties</span><span class="p">()</span>
|
||||
|
||||
<span class="k">if</span> <span class="n">property_type</span> <span class="o">==</span> <span class="n">GLOBAL_TYPE</span><span class="p">:</span>
|
||||
<span class="n">ansible_properties</span><span class="o">.</span><span class="n">set_property</span><span class="p">(</span><span class="n">property_dict</span><span class="p">)</span>
|
||||
<span class="k">elif</span> <span class="n">property_type</span> <span class="o">==</span> <span class="n">GROUP_TYPE</span><span class="p">:</span>
|
||||
@ -191,7 +201,7 @@
|
||||
|
||||
<span class="sd"> Members:</span>
|
||||
<span class="sd"> - name (str): key</span>
|
||||
<span class="sd"> - value (str): value</span>
|
||||
<span class="sd"> - value (Any): value</span>
|
||||
<span class="sd"> - file_name (str): name of file property is from</span>
|
||||
<span class="sd"> - overrides (bool): does the property override some other value</span>
|
||||
<span class="sd"> - orig_value (str): the value which is overridden or None</span>
|
||||
@ -200,6 +210,7 @@
|
||||
<span class="sd"> - ovr_global (bool): true if property is overridden at global level</span>
|
||||
<span class="sd"> - ovr_group (bool): true if property is overridden at group level</span>
|
||||
<span class="sd"> - ovr_host (bool): true if property is overridden at host level</span>
|
||||
<span class="sd"> - value_type (type): the python type of the value</span>
|
||||
<span class="sd"> """</span>
|
||||
|
||||
<span class="k">def</span> <span class="fm">__init__</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">ansible_property</span><span class="p">,</span> <span class="n">override_flags</span><span class="p">):</span>
|
||||
@ -210,6 +221,7 @@
|
||||
<span class="bp">self</span><span class="o">.</span><span class="n">orig_value</span> <span class="o">=</span> <span class="n">ansible_property</span><span class="o">.</span><span class="n">orig_value</span>
|
||||
<span class="bp">self</span><span class="o">.</span><span class="n">target</span> <span class="o">=</span> <span class="n">ansible_property</span><span class="o">.</span><span class="n">target</span>
|
||||
<span class="bp">self</span><span class="o">.</span><span class="n">prop_type</span> <span class="o">=</span> <span class="n">ansible_property</span><span class="o">.</span><span class="n">prop_type</span>
|
||||
<span class="bp">self</span><span class="o">.</span><span class="n">value_type</span> <span class="o">=</span> <span class="n">ansible_property</span><span class="o">.</span><span class="n">value_type</span>
|
||||
|
||||
<span class="k">if</span> <span class="n">override_flags</span> <span class="ow">is</span> <span class="ow">not</span> <span class="bp">None</span><span class="p">:</span>
|
||||
<span class="bp">self</span><span class="o">.</span><span class="n">ovr_global</span> <span class="o">=</span> <span class="n">override_flags</span><span class="o">.</span><span class="n">ovr_global</span>
|
||||
@ -252,7 +264,7 @@
|
||||
<li class="right" >
|
||||
<a href="../../../py-modindex.html" title="Python Module Index"
|
||||
>modules</a> |</li>
|
||||
<li><a href="../../../index.html">kollacli 4.0.0.dev483 documentation</a> »</li>
|
||||
<li><a href="../../../index.html">kollacli 4.0.1.dev498 documentation</a> »</li>
|
||||
<li><a href="../../index.html" >Module code</a> »</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
@ -6,7 +6,7 @@
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
|
||||
<title>kollacli.api.service — kollacli 4.0.0.dev483 documentation</title>
|
||||
<title>kollacli.api.service — kollacli 4.0.1.dev498 documentation</title>
|
||||
|
||||
<link rel="stylesheet" href="../../../_static/default.css" type="text/css" />
|
||||
<link rel="stylesheet" href="../../../_static/pygments.css" type="text/css" />
|
||||
@ -14,7 +14,7 @@
|
||||
<script type="text/javascript">
|
||||
var DOCUMENTATION_OPTIONS = {
|
||||
URL_ROOT: '../../../',
|
||||
VERSION: '4.0.0.dev483',
|
||||
VERSION: '4.0.1.dev498',
|
||||
COLLAPSE_INDEX: false,
|
||||
FILE_SUFFIX: '.html',
|
||||
HAS_SOURCE: true
|
||||
@ -23,7 +23,7 @@
|
||||
<script type="text/javascript" src="../../../_static/jquery.js"></script>
|
||||
<script type="text/javascript" src="../../../_static/underscore.js"></script>
|
||||
<script type="text/javascript" src="../../../_static/doctools.js"></script>
|
||||
<link rel="top" title="kollacli 4.0.0.dev483 documentation" href="../../../index.html" />
|
||||
<link rel="top" title="kollacli 4.0.1.dev498 documentation" href="../../../index.html" />
|
||||
<link rel="up" title="Module code" href="../../index.html" />
|
||||
</head>
|
||||
<body>
|
||||
@ -36,7 +36,7 @@
|
||||
<li class="right" >
|
||||
<a href="../../../py-modindex.html" title="Python Module Index"
|
||||
>modules</a> |</li>
|
||||
<li><a href="../../../index.html">kollacli 4.0.0.dev483 documentation</a> »</li>
|
||||
<li><a href="../../../index.html">kollacli 4.0.1.dev498 documentation</a> »</li>
|
||||
<li><a href="../../index.html" accesskey="U">Module code</a> »</li>
|
||||
</ul>
|
||||
</div>
|
||||
@ -98,27 +98,24 @@
|
||||
<span class="n">inventory</span> <span class="o">=</span> <span class="n">Inventory</span><span class="o">.</span><span class="n">load</span><span class="p">()</span>
|
||||
|
||||
<span class="k">if</span> <span class="n">get_all</span><span class="p">:</span>
|
||||
<span class="n">servicenames</span> <span class="o">=</span> <span class="p">[]</span>
|
||||
<span class="n">serv_dict</span> <span class="o">=</span> <span class="n">inventory</span><span class="o">.</span><span class="n">get_service_sub_services</span><span class="p">()</span>
|
||||
<span class="k">for</span> <span class="n">servicename</span><span class="p">,</span> <span class="n">subservicenames</span> <span class="ow">in</span> <span class="n">serv_dict</span><span class="o">.</span><span class="n">items</span><span class="p">():</span>
|
||||
<span class="n">servicenames</span><span class="o">.</span><span class="n">append</span><span class="p">(</span><span class="n">servicename</span><span class="p">)</span>
|
||||
<span class="n">servicenames</span><span class="o">.</span><span class="n">extend</span><span class="p">(</span><span class="n">subservicenames</span><span class="p">)</span>
|
||||
<span class="n">inv_services</span> <span class="o">=</span> <span class="n">inventory</span><span class="o">.</span><span class="n">get_services</span><span class="p">(</span><span class="n">client_filter</span><span class="o">=</span><span class="bp">True</span><span class="p">)</span>
|
||||
<span class="k">for</span> <span class="n">inv_service</span> <span class="ow">in</span> <span class="n">inv_services</span><span class="p">:</span>
|
||||
<span class="n">service</span> <span class="o">=</span> <span class="n">Service</span><span class="p">(</span><span class="n">inv_service</span><span class="o">.</span><span class="n">name</span><span class="p">,</span>
|
||||
<span class="n">inv_service</span><span class="o">.</span><span class="n">get_parentnames</span><span class="p">(),</span>
|
||||
<span class="n">inv_service</span><span class="o">.</span><span class="n">get_childnames</span><span class="p">(),</span>
|
||||
<span class="n">inv_service</span><span class="o">.</span><span class="n">get_groupnames</span><span class="p">())</span>
|
||||
<span class="n">services</span><span class="o">.</span><span class="n">append</span><span class="p">(</span><span class="n">service</span><span class="p">)</span>
|
||||
<span class="k">else</span><span class="p">:</span>
|
||||
<span class="n">inventory</span><span class="o">.</span><span class="n">validate_servicenames</span><span class="p">(</span><span class="n">servicenames</span><span class="p">)</span>
|
||||
<span class="n">inventory</span><span class="o">.</span><span class="n">validate_servicenames</span><span class="p">(</span><span class="n">servicenames</span><span class="p">,</span> <span class="n">client_filter</span><span class="o">=</span><span class="bp">True</span><span class="p">)</span>
|
||||
|
||||
<span class="k">for</span> <span class="n">servicename</span> <span class="ow">in</span> <span class="n">servicenames</span><span class="p">:</span>
|
||||
<span class="n">inv_service</span> <span class="o">=</span> <span class="n">inventory</span><span class="o">.</span><span class="n">get_service</span><span class="p">(</span><span class="n">servicename</span><span class="p">)</span>
|
||||
<span class="n">inv_service</span> <span class="o">=</span> <span class="n">inventory</span><span class="o">.</span><span class="n">get_service</span><span class="p">(</span><span class="n">servicename</span><span class="p">,</span>
|
||||
<span class="n">client_filter</span><span class="o">=</span><span class="bp">True</span><span class="p">)</span>
|
||||
<span class="k">if</span> <span class="n">inv_service</span><span class="p">:</span>
|
||||
<span class="n">service</span> <span class="o">=</span> <span class="n">Service</span><span class="p">(</span><span class="n">inv_service</span><span class="o">.</span><span class="n">name</span><span class="p">,</span>
|
||||
<span class="bp">None</span><span class="p">,</span>
|
||||
<span class="n">inv_service</span><span class="o">.</span><span class="n">get_sub_servicenames</span><span class="p">(),</span>
|
||||
<span class="n">inv_service</span><span class="o">.</span><span class="n">get_parentnames</span><span class="p">(),</span>
|
||||
<span class="n">inv_service</span><span class="o">.</span><span class="n">get_childnames</span><span class="p">(),</span>
|
||||
<span class="n">inv_service</span><span class="o">.</span><span class="n">get_groupnames</span><span class="p">())</span>
|
||||
<span class="k">else</span><span class="p">:</span>
|
||||
<span class="n">inv_subservice</span> <span class="o">=</span> <span class="n">inventory</span><span class="o">.</span><span class="n">get_sub_service</span><span class="p">(</span><span class="n">servicename</span><span class="p">)</span>
|
||||
<span class="n">service</span> <span class="o">=</span> <span class="n">Service</span><span class="p">(</span><span class="n">inv_subservice</span><span class="o">.</span><span class="n">name</span><span class="p">,</span>
|
||||
<span class="n">inv_subservice</span><span class="o">.</span><span class="n">get_parent_servicename</span><span class="p">(),</span>
|
||||
<span class="p">[],</span>
|
||||
<span class="n">inv_subservice</span><span class="o">.</span><span class="n">get_groupnames</span><span class="p">())</span>
|
||||
<span class="n">services</span><span class="o">.</span><span class="n">append</span><span class="p">(</span><span class="n">service</span><span class="p">)</span>
|
||||
<span class="k">return</span> <span class="n">services</span>
|
||||
|
||||
@ -126,27 +123,27 @@
|
||||
<div class="viewcode-block" id="Service"><a class="viewcode-back" href="../../../kollacli.api.html#kollacli.api.service.Service">[docs]</a><span class="k">class</span> <span class="nc">Service</span><span class="p">(</span><span class="nb">object</span><span class="p">):</span>
|
||||
<span class="sd">"""Service</span>
|
||||
|
||||
<span class="sd"> A service is one of the services available in openstack-kolla.</span>
|
||||
<span class="sd"> A service is one of the services available in openstack-kolla-ansible.</span>
|
||||
|
||||
<span class="sd"> For example, this would be how the murano services would be</span>
|
||||
<span class="sd"> represented:</span>
|
||||
|
||||
<span class="sd"> - murano</span>
|
||||
<span class="sd"> - parentname: None</span>
|
||||
<span class="sd"> - parentnames: []</span>
|
||||
<span class="sd"> - childnames: [murano-api, murano-engine]</span>
|
||||
<span class="sd"> - murano-api</span>
|
||||
<span class="sd"> - parentname: murano</span>
|
||||
<span class="sd"> - parentnames: [murano]</span>
|
||||
<span class="sd"> - childnames: []</span>
|
||||
<span class="sd"> - murano-engine</span>
|
||||
<span class="sd"> - parentname: murano</span>
|
||||
<span class="sd"> - parentnames: [murano]</span>
|
||||
<span class="sd"> - childnames: []</span>
|
||||
<span class="sd"> """</span>
|
||||
|
||||
<span class="k">def</span> <span class="fm">__init__</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">servicename</span><span class="p">,</span> <span class="n">parentname</span><span class="o">=</span><span class="bp">None</span><span class="p">,</span>
|
||||
<span class="k">def</span> <span class="fm">__init__</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">servicename</span><span class="p">,</span> <span class="n">parentnames</span><span class="o">=</span><span class="p">[],</span>
|
||||
<span class="n">childnames</span><span class="o">=</span><span class="p">[],</span> <span class="n">groupnames</span><span class="o">=</span><span class="p">[]):</span>
|
||||
<span class="c1"># type: (str, str, List[str], List[str]) -> None</span>
|
||||
<span class="bp">self</span><span class="o">.</span><span class="n">name</span> <span class="o">=</span> <span class="n">servicename</span>
|
||||
<span class="bp">self</span><span class="o">.</span><span class="n">parentname</span> <span class="o">=</span> <span class="n">parentname</span>
|
||||
<span class="bp">self</span><span class="o">.</span><span class="n">_parentnames</span> <span class="o">=</span> <span class="n">parentnames</span>
|
||||
<span class="bp">self</span><span class="o">.</span><span class="n">_childnames</span> <span class="o">=</span> <span class="n">childnames</span>
|
||||
<span class="bp">self</span><span class="o">.</span><span class="n">_groupnames</span> <span class="o">=</span> <span class="n">groupnames</span>
|
||||
|
||||
@ -159,18 +156,18 @@
|
||||
<span class="sd"> """</span>
|
||||
<span class="k">return</span> <span class="bp">self</span><span class="o">.</span><span class="n">name</span>
|
||||
</div>
|
||||
<div class="viewcode-block" id="Service.get_parent"><a class="viewcode-back" href="../../../kollacli.api.html#kollacli.api.service.Service.get_parent">[docs]</a> <span class="k">def</span> <span class="nf">get_parent</span><span class="p">(</span><span class="bp">self</span><span class="p">):</span>
|
||||
<div class="viewcode-block" id="Service.get_parents"><a class="viewcode-back" href="../../../kollacli.api.html#kollacli.api.service.Service.get_parents">[docs]</a> <span class="k">def</span> <span class="nf">get_parents</span><span class="p">(</span><span class="bp">self</span><span class="p">):</span>
|
||||
<span class="c1"># type: () -> str</span>
|
||||
<span class="sd">"""Get name of parent service</span>
|
||||
<span class="sd">"""Get name of parent services</span>
|
||||
|
||||
<span class="sd"> :return: parent service name</span>
|
||||
<span class="sd"> :return: parent service names</span>
|
||||
<span class="sd"> :rtype: string</span>
|
||||
<span class="sd"> """</span>
|
||||
<span class="k">return</span> <span class="bp">self</span><span class="o">.</span><span class="n">parentname</span>
|
||||
<span class="k">return</span> <span class="n">copy</span><span class="p">(</span><span class="bp">self</span><span class="o">.</span><span class="n">_parentnames</span><span class="p">)</span>
|
||||
</div>
|
||||
<div class="viewcode-block" id="Service.get_children"><a class="viewcode-back" href="../../../kollacli.api.html#kollacli.api.service.Service.get_children">[docs]</a> <span class="k">def</span> <span class="nf">get_children</span><span class="p">(</span><span class="bp">self</span><span class="p">):</span>
|
||||
<span class="c1"># type: () -> List[str]</span>
|
||||
<span class="sd">"""Get names of the child services associated with this service</span>
|
||||
<span class="sd">"""Get names of the child services</span>
|
||||
|
||||
<span class="sd"> :return: child names</span>
|
||||
<span class="sd"> :rtype: list of strings</span>
|
||||
@ -179,7 +176,7 @@
|
||||
</div>
|
||||
<div class="viewcode-block" id="Service.get_groups"><a class="viewcode-back" href="../../../kollacli.api.html#kollacli.api.service.Service.get_groups">[docs]</a> <span class="k">def</span> <span class="nf">get_groups</span><span class="p">(</span><span class="bp">self</span><span class="p">):</span>
|
||||
<span class="c1"># type: () -> List[str]</span>
|
||||
<span class="sd">"""Get names of the groups associated with this service</span>
|
||||
<span class="sd">"""Get names of the groups</span>
|
||||
|
||||
<span class="sd"> :return: group names</span>
|
||||
<span class="sd"> :rtype: list of strings</span>
|
||||
@ -222,7 +219,7 @@
|
||||
<li class="right" >
|
||||
<a href="../../../py-modindex.html" title="Python Module Index"
|
||||
>modules</a> |</li>
|
||||
<li><a href="../../../index.html">kollacli 4.0.0.dev483 documentation</a> »</li>
|
||||
<li><a href="../../../index.html">kollacli 4.0.1.dev498 documentation</a> »</li>
|
||||
<li><a href="../../index.html" >Module code</a> »</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
@ -6,7 +6,7 @@
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
|
||||
<title>kollacli.api.support — kollacli 4.0.0.dev483 documentation</title>
|
||||
<title>kollacli.api.support — kollacli 4.0.1.dev498 documentation</title>
|
||||
|
||||
<link rel="stylesheet" href="../../../_static/default.css" type="text/css" />
|
||||
<link rel="stylesheet" href="../../../_static/pygments.css" type="text/css" />
|
||||
@ -14,7 +14,7 @@
|
||||
<script type="text/javascript">
|
||||
var DOCUMENTATION_OPTIONS = {
|
||||
URL_ROOT: '../../../',
|
||||
VERSION: '4.0.0.dev483',
|
||||
VERSION: '4.0.1.dev498',
|
||||
COLLAPSE_INDEX: false,
|
||||
FILE_SUFFIX: '.html',
|
||||
HAS_SOURCE: true
|
||||
@ -23,7 +23,7 @@
|
||||
<script type="text/javascript" src="../../../_static/jquery.js"></script>
|
||||
<script type="text/javascript" src="../../../_static/underscore.js"></script>
|
||||
<script type="text/javascript" src="../../../_static/doctools.js"></script>
|
||||
<link rel="top" title="kollacli 4.0.0.dev483 documentation" href="../../../index.html" />
|
||||
<link rel="top" title="kollacli 4.0.1.dev498 documentation" href="../../../index.html" />
|
||||
<link rel="up" title="Module code" href="../../index.html" />
|
||||
</head>
|
||||
<body>
|
||||
@ -36,7 +36,7 @@
|
||||
<li class="right" >
|
||||
<a href="../../../py-modindex.html" title="Python Module Index"
|
||||
>modules</a> |</li>
|
||||
<li><a href="../../../index.html">kollacli 4.0.0.dev483 documentation</a> »</li>
|
||||
<li><a href="../../../index.html">kollacli 4.0.1.dev498 documentation</a> »</li>
|
||||
<li><a href="../../index.html" accesskey="U">Module code</a> »</li>
|
||||
</ul>
|
||||
</div>
|
||||
@ -155,7 +155,7 @@
|
||||
<li class="right" >
|
||||
<a href="../../../py-modindex.html" title="Python Module Index"
|
||||
>modules</a> |</li>
|
||||
<li><a href="../../../index.html">kollacli 4.0.0.dev483 documentation</a> »</li>
|
||||
<li><a href="../../../index.html">kollacli 4.0.1.dev498 documentation</a> »</li>
|
||||
<li><a href="../../index.html" >Module code</a> »</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
@ -6,7 +6,7 @@
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
|
||||
<title>kollacli.commands.deploy — kollacli 4.0.0.dev483 documentation</title>
|
||||
<title>kollacli.commands.deploy — kollacli 4.0.1.dev498 documentation</title>
|
||||
|
||||
<link rel="stylesheet" href="../../../_static/default.css" type="text/css" />
|
||||
<link rel="stylesheet" href="../../../_static/pygments.css" type="text/css" />
|
||||
@ -14,7 +14,7 @@
|
||||
<script type="text/javascript">
|
||||
var DOCUMENTATION_OPTIONS = {
|
||||
URL_ROOT: '../../../',
|
||||
VERSION: '4.0.0.dev483',
|
||||
VERSION: '4.0.1.dev498',
|
||||
COLLAPSE_INDEX: false,
|
||||
FILE_SUFFIX: '.html',
|
||||
HAS_SOURCE: true
|
||||
@ -23,7 +23,7 @@
|
||||
<script type="text/javascript" src="../../../_static/jquery.js"></script>
|
||||
<script type="text/javascript" src="../../../_static/underscore.js"></script>
|
||||
<script type="text/javascript" src="../../../_static/doctools.js"></script>
|
||||
<link rel="top" title="kollacli 4.0.0.dev483 documentation" href="../../../index.html" />
|
||||
<link rel="top" title="kollacli 4.0.1.dev498 documentation" href="../../../index.html" />
|
||||
<link rel="up" title="Module code" href="../../index.html" />
|
||||
</head>
|
||||
<body>
|
||||
@ -36,7 +36,7 @@
|
||||
<li class="right" >
|
||||
<a href="../../../py-modindex.html" title="Python Module Index"
|
||||
>modules</a> |</li>
|
||||
<li><a href="../../../index.html">kollacli 4.0.0.dev483 documentation</a> »</li>
|
||||
<li><a href="../../../index.html">kollacli 4.0.1.dev498 documentation</a> »</li>
|
||||
<li><a href="../../index.html" accesskey="U">Module code</a> »</li>
|
||||
</ul>
|
||||
</div>
|
||||
@ -76,7 +76,7 @@
|
||||
|
||||
|
||||
<div class="viewcode-block" id="Deploy"><a class="viewcode-back" href="../../../kollacli.commands.html#kollacli.commands.deploy.Deploy">[docs]</a><span class="k">class</span> <span class="nc">Deploy</span><span class="p">(</span><span class="n">Command</span><span class="p">):</span>
|
||||
<span class="sd">"""Deploy."""</span>
|
||||
<span class="sd">"""Deploy containers to hosts."""</span>
|
||||
<div class="viewcode-block" id="Deploy.get_parser"><a class="viewcode-back" href="../../../kollacli.commands.html#kollacli.commands.deploy.Deploy.get_parser">[docs]</a> <span class="k">def</span> <span class="nf">get_parser</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">prog_name</span><span class="p">):</span>
|
||||
<span class="n">parser</span> <span class="o">=</span> <span class="nb">super</span><span class="p">(</span><span class="n">Deploy</span><span class="p">,</span> <span class="bp">self</span><span class="p">)</span><span class="o">.</span><span class="n">get_parser</span><span class="p">(</span><span class="n">prog_name</span><span class="p">)</span>
|
||||
<span class="n">parser</span><span class="o">.</span><span class="n">add_argument</span><span class="p">(</span><span class="s1">'--hosts'</span><span class="p">,</span> <span class="n">nargs</span><span class="o">=</span><span class="s1">'?'</span><span class="p">,</span>
|
||||
@ -123,7 +123,7 @@
|
||||
<span class="s1">'Invalid hosts: {hosts}'</span><span class="p">)</span>
|
||||
<span class="o">.</span><span class="n">format</span><span class="p">(</span><span class="n">hosts</span><span class="o">=</span><span class="n">invalid_host_list</span><span class="p">))</span>
|
||||
|
||||
<span class="n">job</span> <span class="o">=</span> <span class="n">CLIENT</span><span class="o">.</span><span class="n">async_deploy</span><span class="p">(</span><span class="n">hosts</span><span class="p">,</span> <span class="n">serial_flag</span><span class="p">,</span>
|
||||
<span class="n">job</span> <span class="o">=</span> <span class="n">CLIENT</span><span class="o">.</span><span class="n">deploy</span><span class="p">(</span><span class="n">hosts</span><span class="p">,</span> <span class="n">serial_flag</span><span class="p">,</span>
|
||||
<span class="n">verbose_level</span><span class="p">)</span>
|
||||
|
||||
<span class="c1"># wait for job to complete</span>
|
||||
@ -181,7 +181,7 @@
|
||||
<span class="k">raise</span> <span class="n">CommandError</span><span class="p">(</span>
|
||||
<span class="n">u</span><span class="o">.</span><span class="n">_</span><span class="p">(</span><span class="s1">'Invalid deploy mode. Mode must be '</span>
|
||||
<span class="s1">'either "local" or "remote".'</span><span class="p">))</span>
|
||||
<span class="n">CLIENT</span><span class="o">.</span><span class="n">deploy_set_mode</span><span class="p">(</span><span class="n">remote_flag</span><span class="p">)</span>
|
||||
<span class="n">CLIENT</span><span class="o">.</span><span class="n">set_deploy_mode</span><span class="p">(</span><span class="n">remote_flag</span><span class="p">)</span>
|
||||
<span class="k">except</span> <span class="n">CommandError</span> <span class="k">as</span> <span class="n">e</span><span class="p">:</span>
|
||||
<span class="k">raise</span> <span class="n">e</span>
|
||||
<span class="k">except</span> <span class="ne">Exception</span><span class="p">:</span>
|
||||
@ -219,7 +219,7 @@
|
||||
<li class="right" >
|
||||
<a href="../../../py-modindex.html" title="Python Module Index"
|
||||
>modules</a> |</li>
|
||||
<li><a href="../../../index.html">kollacli 4.0.0.dev483 documentation</a> »</li>
|
||||
<li><a href="../../../index.html">kollacli 4.0.1.dev498 documentation</a> »</li>
|
||||
<li><a href="../../index.html" >Module code</a> »</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
@ -6,7 +6,7 @@
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
|
||||
<title>kollacli.commands.exceptions — kollacli 4.0.0.dev483 documentation</title>
|
||||
<title>kollacli.commands.exceptions — kollacli 4.0.1.dev498 documentation</title>
|
||||
|
||||
<link rel="stylesheet" href="../../../_static/default.css" type="text/css" />
|
||||
<link rel="stylesheet" href="../../../_static/pygments.css" type="text/css" />
|
||||
@ -14,7 +14,7 @@
|
||||
<script type="text/javascript">
|
||||
var DOCUMENTATION_OPTIONS = {
|
||||
URL_ROOT: '../../../',
|
||||
VERSION: '4.0.0.dev483',
|
||||
VERSION: '4.0.1.dev498',
|
||||
COLLAPSE_INDEX: false,
|
||||
FILE_SUFFIX: '.html',
|
||||
HAS_SOURCE: true
|
||||
@ -23,7 +23,7 @@
|
||||
<script type="text/javascript" src="../../../_static/jquery.js"></script>
|
||||
<script type="text/javascript" src="../../../_static/underscore.js"></script>
|
||||
<script type="text/javascript" src="../../../_static/doctools.js"></script>
|
||||
<link rel="top" title="kollacli 4.0.0.dev483 documentation" href="../../../index.html" />
|
||||
<link rel="top" title="kollacli 4.0.1.dev498 documentation" href="../../../index.html" />
|
||||
<link rel="up" title="Module code" href="../../index.html" />
|
||||
</head>
|
||||
<body>
|
||||
@ -36,7 +36,7 @@
|
||||
<li class="right" >
|
||||
<a href="../../../py-modindex.html" title="Python Module Index"
|
||||
>modules</a> |</li>
|
||||
<li><a href="../../../index.html">kollacli 4.0.0.dev483 documentation</a> »</li>
|
||||
<li><a href="../../../index.html">kollacli 4.0.1.dev498 documentation</a> »</li>
|
||||
<li><a href="../../index.html" accesskey="U">Module code</a> »</li>
|
||||
</ul>
|
||||
</div>
|
||||
@ -104,7 +104,7 @@
|
||||
<li class="right" >
|
||||
<a href="../../../py-modindex.html" title="Python Module Index"
|
||||
>modules</a> |</li>
|
||||
<li><a href="../../../index.html">kollacli 4.0.0.dev483 documentation</a> »</li>
|
||||
<li><a href="../../../index.html">kollacli 4.0.1.dev498 documentation</a> »</li>
|
||||
<li><a href="../../index.html" >Module code</a> »</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
@ -6,7 +6,7 @@
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
|
||||
<title>kollacli.commands.group — kollacli 4.0.0.dev483 documentation</title>
|
||||
<title>kollacli.commands.group — kollacli 4.0.1.dev498 documentation</title>
|
||||
|
||||
<link rel="stylesheet" href="../../../_static/default.css" type="text/css" />
|
||||
<link rel="stylesheet" href="../../../_static/pygments.css" type="text/css" />
|
||||
@ -14,7 +14,7 @@
|
||||
<script type="text/javascript">
|
||||
var DOCUMENTATION_OPTIONS = {
|
||||
URL_ROOT: '../../../',
|
||||
VERSION: '4.0.0.dev483',
|
||||
VERSION: '4.0.1.dev498',
|
||||
COLLAPSE_INDEX: false,
|
||||
FILE_SUFFIX: '.html',
|
||||
HAS_SOURCE: true
|
||||
@ -23,7 +23,7 @@
|
||||
<script type="text/javascript" src="../../../_static/jquery.js"></script>
|
||||
<script type="text/javascript" src="../../../_static/underscore.js"></script>
|
||||
<script type="text/javascript" src="../../../_static/doctools.js"></script>
|
||||
<link rel="top" title="kollacli 4.0.0.dev483 documentation" href="../../../index.html" />
|
||||
<link rel="top" title="kollacli 4.0.1.dev498 documentation" href="../../../index.html" />
|
||||
<link rel="up" title="Module code" href="../../index.html" />
|
||||
</head>
|
||||
<body>
|
||||
@ -36,7 +36,7 @@
|
||||
<li class="right" >
|
||||
<a href="../../../py-modindex.html" title="Python Module Index"
|
||||
>modules</a> |</li>
|
||||
<li><a href="../../../index.html">kollacli 4.0.0.dev483 documentation</a> »</li>
|
||||
<li><a href="../../../index.html">kollacli 4.0.1.dev498 documentation</a> »</li>
|
||||
<li><a href="../../index.html" accesskey="U">Module code</a> »</li>
|
||||
</ul>
|
||||
</div>
|
||||
@ -284,7 +284,7 @@
|
||||
<li class="right" >
|
||||
<a href="../../../py-modindex.html" title="Python Module Index"
|
||||
>modules</a> |</li>
|
||||
<li><a href="../../../index.html">kollacli 4.0.0.dev483 documentation</a> »</li>
|
||||
<li><a href="../../../index.html">kollacli 4.0.1.dev498 documentation</a> »</li>
|
||||
<li><a href="../../index.html" >Module code</a> »</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
@ -6,7 +6,7 @@
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
|
||||
<title>kollacli.commands.host — kollacli 4.0.0.dev483 documentation</title>
|
||||
<title>kollacli.commands.host — kollacli 4.0.1.dev498 documentation</title>
|
||||
|
||||
<link rel="stylesheet" href="../../../_static/default.css" type="text/css" />
|
||||
<link rel="stylesheet" href="../../../_static/pygments.css" type="text/css" />
|
||||
@ -14,7 +14,7 @@
|
||||
<script type="text/javascript">
|
||||
var DOCUMENTATION_OPTIONS = {
|
||||
URL_ROOT: '../../../',
|
||||
VERSION: '4.0.0.dev483',
|
||||
VERSION: '4.0.1.dev498',
|
||||
COLLAPSE_INDEX: false,
|
||||
FILE_SUFFIX: '.html',
|
||||
HAS_SOURCE: true
|
||||
@ -23,7 +23,7 @@
|
||||
<script type="text/javascript" src="../../../_static/jquery.js"></script>
|
||||
<script type="text/javascript" src="../../../_static/underscore.js"></script>
|
||||
<script type="text/javascript" src="../../../_static/doctools.js"></script>
|
||||
<link rel="top" title="kollacli 4.0.0.dev483 documentation" href="../../../index.html" />
|
||||
<link rel="top" title="kollacli 4.0.1.dev498 documentation" href="../../../index.html" />
|
||||
<link rel="up" title="Module code" href="../../index.html" />
|
||||
</head>
|
||||
<body>
|
||||
@ -36,7 +36,7 @@
|
||||
<li class="right" >
|
||||
<a href="../../../py-modindex.html" title="Python Module Index"
|
||||
>modules</a> |</li>
|
||||
<li><a href="../../../index.html">kollacli 4.0.0.dev483 documentation</a> »</li>
|
||||
<li><a href="../../../index.html">kollacli 4.0.1.dev498 documentation</a> »</li>
|
||||
<li><a href="../../index.html" accesskey="U">Module code</a> »</li>
|
||||
</ul>
|
||||
</div>
|
||||
@ -103,7 +103,7 @@
|
||||
|
||||
</div></div>
|
||||
<div class="viewcode-block" id="HostDestroy"><a class="viewcode-back" href="../../../kollacli.commands.html#kollacli.commands.host.HostDestroy">[docs]</a><span class="k">class</span> <span class="nc">HostDestroy</span><span class="p">(</span><span class="n">Command</span><span class="p">):</span>
|
||||
<span class="sd">"""Destroy.</span>
|
||||
<span class="sd">"""Destroy all kolla containers on host(s).</span>
|
||||
|
||||
<span class="sd"> Stops and removes all kolla related docker containers on either the</span>
|
||||
<span class="sd"> specified host or all hosts if the hostname all is used.</span>
|
||||
@ -150,7 +150,7 @@
|
||||
<span class="k">return</span>
|
||||
<span class="n">verbose_level</span> <span class="o">=</span> <span class="bp">self</span><span class="o">.</span><span class="n">app</span><span class="o">.</span><span class="n">options</span><span class="o">.</span><span class="n">verbose_level</span>
|
||||
|
||||
<span class="n">job</span> <span class="o">=</span> <span class="n">CLIENT</span><span class="o">.</span><span class="n">async_host_destroy</span><span class="p">(</span><span class="n">hostnames</span><span class="p">,</span> <span class="n">destroy_type</span><span class="p">,</span>
|
||||
<span class="n">job</span> <span class="o">=</span> <span class="n">CLIENT</span><span class="o">.</span><span class="n">host_destroy</span><span class="p">(</span><span class="n">hostnames</span><span class="p">,</span> <span class="n">destroy_type</span><span class="p">,</span>
|
||||
<span class="n">verbose_level</span><span class="p">,</span> <span class="n">include_data</span><span class="p">,</span>
|
||||
<span class="n">remove_images</span><span class="p">)</span>
|
||||
<span class="n">status</span> <span class="o">=</span> <span class="n">job</span><span class="o">.</span><span class="n">wait</span><span class="p">()</span>
|
||||
@ -257,7 +257,7 @@
|
||||
<span class="k">if</span> <span class="n">parsed_args</span><span class="o">.</span><span class="n">predeploy</span><span class="p">:</span>
|
||||
<span class="c1"># run pre-deploy checks</span>
|
||||
<span class="n">verbose_level</span> <span class="o">=</span> <span class="bp">self</span><span class="o">.</span><span class="n">app</span><span class="o">.</span><span class="n">options</span><span class="o">.</span><span class="n">verbose_level</span>
|
||||
<span class="n">job</span> <span class="o">=</span> <span class="n">CLIENT</span><span class="o">.</span><span class="n">async_host_precheck</span><span class="p">(</span><span class="n">hostnames</span><span class="p">,</span> <span class="n">verbose_level</span><span class="p">)</span>
|
||||
<span class="n">job</span> <span class="o">=</span> <span class="n">CLIENT</span><span class="o">.</span><span class="n">host_precheck</span><span class="p">(</span><span class="n">hostnames</span><span class="p">,</span> <span class="n">verbose_level</span><span class="p">)</span>
|
||||
<span class="n">status</span> <span class="o">=</span> <span class="n">job</span><span class="o">.</span><span class="n">wait</span><span class="p">()</span>
|
||||
<span class="k">if</span> <span class="n">verbose_level</span> <span class="o">></span> <span class="mi">2</span><span class="p">:</span>
|
||||
<span class="n">LOG</span><span class="o">.</span><span class="n">info</span><span class="p">(</span><span class="s1">'</span><span class="se">\n\n</span><span class="s1">'</span> <span class="o">+</span> <span class="mi">80</span> <span class="o">*</span> <span class="s1">'='</span><span class="p">)</span>
|
||||
@ -359,7 +359,7 @@
|
||||
|
||||
</div>
|
||||
<div class="viewcode-block" id="HostStop"><a class="viewcode-back" href="../../../kollacli.commands.html#kollacli.commands.host.HostStop">[docs]</a><span class="k">class</span> <span class="nc">HostStop</span><span class="p">(</span><span class="n">Command</span><span class="p">):</span>
|
||||
<span class="sd">"""Stop.</span>
|
||||
<span class="sd">"""Stop all kolla containers on host(s).</span>
|
||||
|
||||
<span class="sd"> Stops all kolla related docker containers on either the</span>
|
||||
<span class="sd"> specified host or all hosts if the hostname all is used.</span>
|
||||
@ -381,7 +381,7 @@
|
||||
|
||||
<span class="n">verbose_level</span> <span class="o">=</span> <span class="bp">self</span><span class="o">.</span><span class="n">app</span><span class="o">.</span><span class="n">options</span><span class="o">.</span><span class="n">verbose_level</span>
|
||||
|
||||
<span class="n">job</span> <span class="o">=</span> <span class="n">CLIENT</span><span class="o">.</span><span class="n">async_host_stop</span><span class="p">(</span><span class="n">hostnames</span><span class="p">,</span> <span class="n">verbose_level</span><span class="p">)</span>
|
||||
<span class="n">job</span> <span class="o">=</span> <span class="n">CLIENT</span><span class="o">.</span><span class="n">host_stop</span><span class="p">(</span><span class="n">hostnames</span><span class="p">,</span> <span class="n">verbose_level</span><span class="p">)</span>
|
||||
<span class="n">status</span> <span class="o">=</span> <span class="n">job</span><span class="o">.</span><span class="n">wait</span><span class="p">()</span>
|
||||
<span class="k">if</span> <span class="n">verbose_level</span> <span class="o">></span> <span class="mi">2</span><span class="p">:</span>
|
||||
<span class="n">LOG</span><span class="o">.</span><span class="n">info</span><span class="p">(</span><span class="s1">'</span><span class="se">\n\n</span><span class="s1">'</span> <span class="o">+</span> <span class="mi">80</span> <span class="o">*</span> <span class="s1">'='</span><span class="p">)</span>
|
||||
@ -441,7 +441,7 @@
|
||||
<li class="right" >
|
||||
<a href="../../../py-modindex.html" title="Python Module Index"
|
||||
>modules</a> |</li>
|
||||
<li><a href="../../../index.html">kollacli 4.0.0.dev483 documentation</a> »</li>
|
||||
<li><a href="../../../index.html">kollacli 4.0.1.dev498 documentation</a> »</li>
|
||||
<li><a href="../../index.html" >Module code</a> »</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
@ -6,7 +6,7 @@
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
|
||||
<title>kollacli.commands.password — kollacli 4.0.0.dev483 documentation</title>
|
||||
<title>kollacli.commands.password — kollacli 4.0.1.dev498 documentation</title>
|
||||
|
||||
<link rel="stylesheet" href="../../../_static/default.css" type="text/css" />
|
||||
<link rel="stylesheet" href="../../../_static/pygments.css" type="text/css" />
|
||||
@ -14,7 +14,7 @@
|
||||
<script type="text/javascript">
|
||||
var DOCUMENTATION_OPTIONS = {
|
||||
URL_ROOT: '../../../',
|
||||
VERSION: '4.0.0.dev483',
|
||||
VERSION: '4.0.1.dev498',
|
||||
COLLAPSE_INDEX: false,
|
||||
FILE_SUFFIX: '.html',
|
||||
HAS_SOURCE: true
|
||||
@ -23,7 +23,7 @@
|
||||
<script type="text/javascript" src="../../../_static/jquery.js"></script>
|
||||
<script type="text/javascript" src="../../../_static/underscore.js"></script>
|
||||
<script type="text/javascript" src="../../../_static/doctools.js"></script>
|
||||
<link rel="top" title="kollacli 4.0.0.dev483 documentation" href="../../../index.html" />
|
||||
<link rel="top" title="kollacli 4.0.1.dev498 documentation" href="../../../index.html" />
|
||||
<link rel="up" title="Module code" href="../../index.html" />
|
||||
</head>
|
||||
<body>
|
||||
@ -36,7 +36,7 @@
|
||||
<li class="right" >
|
||||
<a href="../../../py-modindex.html" title="Python Module Index"
|
||||
>modules</a> |</li>
|
||||
<li><a href="../../../index.html">kollacli 4.0.0.dev483 documentation</a> »</li>
|
||||
<li><a href="../../../index.html">kollacli 4.0.1.dev498 documentation</a> »</li>
|
||||
<li><a href="../../index.html" accesskey="U">Module code</a> »</li>
|
||||
</ul>
|
||||
</div>
|
||||
@ -222,7 +222,7 @@
|
||||
<li class="right" >
|
||||
<a href="../../../py-modindex.html" title="Python Module Index"
|
||||
>modules</a> |</li>
|
||||
<li><a href="../../../index.html">kollacli 4.0.0.dev483 documentation</a> »</li>
|
||||
<li><a href="../../../index.html">kollacli 4.0.1.dev498 documentation</a> »</li>
|
||||
<li><a href="../../index.html" >Module code</a> »</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
@ -6,7 +6,7 @@
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
|
||||
<title>kollacli.commands.property — kollacli 4.0.0.dev483 documentation</title>
|
||||
<title>kollacli.commands.property — kollacli 4.0.1.dev498 documentation</title>
|
||||
|
||||
<link rel="stylesheet" href="../../../_static/default.css" type="text/css" />
|
||||
<link rel="stylesheet" href="../../../_static/pygments.css" type="text/css" />
|
||||
@ -14,7 +14,7 @@
|
||||
<script type="text/javascript">
|
||||
var DOCUMENTATION_OPTIONS = {
|
||||
URL_ROOT: '../../../',
|
||||
VERSION: '4.0.0.dev483',
|
||||
VERSION: '4.0.1.dev498',
|
||||
COLLAPSE_INDEX: false,
|
||||
FILE_SUFFIX: '.html',
|
||||
HAS_SOURCE: true
|
||||
@ -23,7 +23,7 @@
|
||||
<script type="text/javascript" src="../../../_static/jquery.js"></script>
|
||||
<script type="text/javascript" src="../../../_static/underscore.js"></script>
|
||||
<script type="text/javascript" src="../../../_static/doctools.js"></script>
|
||||
<link rel="top" title="kollacli 4.0.0.dev483 documentation" href="../../../index.html" />
|
||||
<link rel="top" title="kollacli 4.0.1.dev498 documentation" href="../../../index.html" />
|
||||
<link rel="up" title="Module code" href="../../index.html" />
|
||||
</head>
|
||||
<body>
|
||||
@ -36,7 +36,7 @@
|
||||
<li class="right" >
|
||||
<a href="../../../py-modindex.html" title="Python Module Index"
|
||||
>modules</a> |</li>
|
||||
<li><a href="../../../index.html">kollacli 4.0.0.dev483 documentation</a> »</li>
|
||||
<li><a href="../../../index.html">kollacli 4.0.1.dev498 documentation</a> »</li>
|
||||
<li><a href="../../index.html" accesskey="U">Module code</a> »</li>
|
||||
</ul>
|
||||
</div>
|
||||
@ -346,7 +346,7 @@
|
||||
<li class="right" >
|
||||
<a href="../../../py-modindex.html" title="Python Module Index"
|
||||
>modules</a> |</li>
|
||||
<li><a href="../../../index.html">kollacli 4.0.0.dev483 documentation</a> »</li>
|
||||
<li><a href="../../../index.html">kollacli 4.0.1.dev498 documentation</a> »</li>
|
||||
<li><a href="../../index.html" >Module code</a> »</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
@ -6,7 +6,7 @@
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
|
||||
<title>kollacli.commands.service — kollacli 4.0.0.dev483 documentation</title>
|
||||
<title>kollacli.commands.service — kollacli 4.0.1.dev498 documentation</title>
|
||||
|
||||
<link rel="stylesheet" href="../../../_static/default.css" type="text/css" />
|
||||
<link rel="stylesheet" href="../../../_static/pygments.css" type="text/css" />
|
||||
@ -14,7 +14,7 @@
|
||||
<script type="text/javascript">
|
||||
var DOCUMENTATION_OPTIONS = {
|
||||
URL_ROOT: '../../../',
|
||||
VERSION: '4.0.0.dev483',
|
||||
VERSION: '4.0.1.dev498',
|
||||
COLLAPSE_INDEX: false,
|
||||
FILE_SUFFIX: '.html',
|
||||
HAS_SOURCE: true
|
||||
@ -23,7 +23,7 @@
|
||||
<script type="text/javascript" src="../../../_static/jquery.js"></script>
|
||||
<script type="text/javascript" src="../../../_static/underscore.js"></script>
|
||||
<script type="text/javascript" src="../../../_static/doctools.js"></script>
|
||||
<link rel="top" title="kollacli 4.0.0.dev483 documentation" href="../../../index.html" />
|
||||
<link rel="top" title="kollacli 4.0.1.dev498 documentation" href="../../../index.html" />
|
||||
<link rel="up" title="Module code" href="../../index.html" />
|
||||
</head>
|
||||
<body>
|
||||
@ -36,7 +36,7 @@
|
||||
<li class="right" >
|
||||
<a href="../../../py-modindex.html" title="Python Module Index"
|
||||
>modules</a> |</li>
|
||||
<li><a href="../../../index.html">kollacli 4.0.0.dev483 documentation</a> »</li>
|
||||
<li><a href="../../../index.html">kollacli 4.0.1.dev498 documentation</a> »</li>
|
||||
<li><a href="../../index.html" accesskey="U">Module code</a> »</li>
|
||||
</ul>
|
||||
</div>
|
||||
@ -139,20 +139,11 @@
|
||||
<span class="k">if</span> <span class="n">services</span><span class="p">:</span>
|
||||
<span class="n">data</span> <span class="o">=</span> <span class="p">[]</span>
|
||||
<span class="k">for</span> <span class="n">service</span> <span class="ow">in</span> <span class="n">services</span><span class="p">:</span>
|
||||
<span class="n">inh_str</span> <span class="o">=</span> <span class="s1">'-'</span>
|
||||
<span class="n">groupnames</span> <span class="o">=</span> <span class="nb">sorted</span><span class="p">(</span><span class="n">service</span><span class="o">.</span><span class="n">get_groups</span><span class="p">())</span>
|
||||
<span class="n">parentname</span> <span class="o">=</span> <span class="n">service</span><span class="o">.</span><span class="n">get_parent</span><span class="p">()</span>
|
||||
<span class="k">if</span> <span class="n">parentname</span><span class="p">:</span>
|
||||
<span class="c1"># this is a subservice</span>
|
||||
<span class="n">inh_str</span> <span class="o">=</span> <span class="s1">'no'</span>
|
||||
<span class="k">if</span> <span class="ow">not</span> <span class="n">groupnames</span><span class="p">:</span>
|
||||
<span class="c1"># sub-service is inheriting groups from parent</span>
|
||||
<span class="n">inh_str</span> <span class="o">=</span> <span class="s1">'yes'</span>
|
||||
<span class="n">groupnames</span> <span class="o">=</span> <span class="s1">''</span>
|
||||
<span class="n">data</span><span class="o">.</span><span class="n">append</span><span class="p">((</span><span class="n">service</span><span class="o">.</span><span class="n">name</span><span class="p">,</span> <span class="n">groupnames</span><span class="p">,</span> <span class="n">inh_str</span><span class="p">))</span>
|
||||
<span class="n">data</span><span class="o">.</span><span class="n">append</span><span class="p">((</span><span class="n">service</span><span class="o">.</span><span class="n">name</span><span class="p">,</span> <span class="n">groupnames</span><span class="p">))</span>
|
||||
|
||||
<span class="n">data</span> <span class="o">=</span> <span class="n">convert_lists_to_string</span><span class="p">(</span><span class="n">data</span><span class="p">,</span> <span class="n">parsed_args</span><span class="p">)</span>
|
||||
<span class="k">return</span> <span class="p">((</span><span class="n">u</span><span class="o">.</span><span class="n">_</span><span class="p">(</span><span class="s1">'Service'</span><span class="p">),</span> <span class="n">u</span><span class="o">.</span><span class="n">_</span><span class="p">(</span><span class="s1">'Groups'</span><span class="p">),</span> <span class="n">u</span><span class="o">.</span><span class="n">_</span><span class="p">(</span><span class="s1">'Inherited'</span><span class="p">)),</span>
|
||||
<span class="nb">sorted</span><span class="p">(</span><span class="n">data</span><span class="p">))</span>
|
||||
<span class="k">return</span> <span class="p">(</span><span class="n">u</span><span class="o">.</span><span class="n">_</span><span class="p">(</span><span class="s1">'Service'</span><span class="p">),</span> <span class="n">u</span><span class="o">.</span><span class="n">_</span><span class="p">(</span><span class="s1">'Groups'</span><span class="p">)),</span> <span class="nb">sorted</span><span class="p">(</span><span class="n">data</span><span class="p">)</span>
|
||||
<span class="k">except</span> <span class="n">ClientException</span> <span class="k">as</span> <span class="n">e</span><span class="p">:</span>
|
||||
<span class="k">raise</span> <span class="n">CommandError</span><span class="p">(</span><span class="nb">str</span><span class="p">(</span><span class="n">e</span><span class="p">))</span>
|
||||
<span class="k">except</span> <span class="ne">Exception</span> <span class="k">as</span> <span class="n">e</span><span class="p">:</span>
|
||||
@ -169,11 +160,10 @@
|
||||
<span class="k">if</span> <span class="n">services</span><span class="p">:</span>
|
||||
<span class="n">data</span> <span class="o">=</span> <span class="p">[]</span>
|
||||
<span class="k">for</span> <span class="n">service</span> <span class="ow">in</span> <span class="n">services</span><span class="p">:</span>
|
||||
<span class="k">if</span> <span class="ow">not</span> <span class="n">service</span><span class="o">.</span><span class="n">get_parent</span><span class="p">():</span>
|
||||
<span class="c1"># this is a service, not a subservice</span>
|
||||
<span class="n">data</span><span class="o">.</span><span class="n">append</span><span class="p">((</span><span class="n">service</span><span class="o">.</span><span class="n">name</span><span class="p">,</span> <span class="n">service</span><span class="o">.</span><span class="n">get_children</span><span class="p">()))</span>
|
||||
|
||||
<span class="n">data</span> <span class="o">=</span> <span class="n">convert_lists_to_string</span><span class="p">(</span><span class="n">data</span><span class="p">,</span> <span class="n">parsed_args</span><span class="p">)</span>
|
||||
<span class="k">return</span> <span class="p">((</span><span class="n">u</span><span class="o">.</span><span class="n">_</span><span class="p">(</span><span class="s1">'Service'</span><span class="p">),</span> <span class="n">u</span><span class="o">.</span><span class="n">_</span><span class="p">(</span><span class="s1">'Sub-Services'</span><span class="p">)),</span> <span class="nb">sorted</span><span class="p">(</span><span class="n">data</span><span class="p">))</span>
|
||||
<span class="k">return</span> <span class="p">((</span><span class="n">u</span><span class="o">.</span><span class="n">_</span><span class="p">(</span><span class="s1">'Service'</span><span class="p">),</span> <span class="n">u</span><span class="o">.</span><span class="n">_</span><span class="p">(</span><span class="s1">'Children'</span><span class="p">)),</span> <span class="nb">sorted</span><span class="p">(</span><span class="n">data</span><span class="p">))</span>
|
||||
|
||||
<span class="k">except</span> <span class="n">ClientException</span> <span class="k">as</span> <span class="n">e</span><span class="p">:</span>
|
||||
<span class="k">raise</span> <span class="n">CommandError</span><span class="p">(</span><span class="nb">str</span><span class="p">(</span><span class="n">e</span><span class="p">))</span>
|
||||
@ -212,7 +202,7 @@
|
||||
<li class="right" >
|
||||
<a href="../../../py-modindex.html" title="Python Module Index"
|
||||
>modules</a> |</li>
|
||||
<li><a href="../../../index.html">kollacli 4.0.0.dev483 documentation</a> »</li>
|
||||
<li><a href="../../../index.html">kollacli 4.0.1.dev498 documentation</a> »</li>
|
||||
<li><a href="../../index.html" >Module code</a> »</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
@ -6,7 +6,7 @@
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
|
||||
<title>kollacli.commands.support — kollacli 4.0.0.dev483 documentation</title>
|
||||
<title>kollacli.commands.support — kollacli 4.0.1.dev498 documentation</title>
|
||||
|
||||
<link rel="stylesheet" href="../../../_static/default.css" type="text/css" />
|
||||
<link rel="stylesheet" href="../../../_static/pygments.css" type="text/css" />
|
||||
@ -14,7 +14,7 @@
|
||||
<script type="text/javascript">
|
||||
var DOCUMENTATION_OPTIONS = {
|
||||
URL_ROOT: '../../../',
|
||||
VERSION: '4.0.0.dev483',
|
||||
VERSION: '4.0.1.dev498',
|
||||
COLLAPSE_INDEX: false,
|
||||
FILE_SUFFIX: '.html',
|
||||
HAS_SOURCE: true
|
||||
@ -23,7 +23,7 @@
|
||||
<script type="text/javascript" src="../../../_static/jquery.js"></script>
|
||||
<script type="text/javascript" src="../../../_static/underscore.js"></script>
|
||||
<script type="text/javascript" src="../../../_static/doctools.js"></script>
|
||||
<link rel="top" title="kollacli 4.0.0.dev483 documentation" href="../../../index.html" />
|
||||
<link rel="top" title="kollacli 4.0.1.dev498 documentation" href="../../../index.html" />
|
||||
<link rel="up" title="Module code" href="../../index.html" />
|
||||
</head>
|
||||
<body>
|
||||
@ -36,7 +36,7 @@
|
||||
<li class="right" >
|
||||
<a href="../../../py-modindex.html" title="Python Module Index"
|
||||
>modules</a> |</li>
|
||||
<li><a href="../../../index.html">kollacli 4.0.0.dev483 documentation</a> »</li>
|
||||
<li><a href="../../../index.html">kollacli 4.0.1.dev498 documentation</a> »</li>
|
||||
<li><a href="../../index.html" accesskey="U">Module code</a> »</li>
|
||||
</ul>
|
||||
</div>
|
||||
@ -119,7 +119,7 @@
|
||||
<li class="right" >
|
||||
<a href="../../../py-modindex.html" title="Python Module Index"
|
||||
>modules</a> |</li>
|
||||
<li><a href="../../../index.html">kollacli 4.0.0.dev483 documentation</a> »</li>
|
||||
<li><a href="../../../index.html">kollacli 4.0.1.dev498 documentation</a> »</li>
|
||||
<li><a href="../../index.html" >Module code</a> »</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
@ -6,7 +6,7 @@
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
|
||||
<title>kollacli.commands.upgrade — kollacli 4.0.0.dev483 documentation</title>
|
||||
<title>kollacli.commands.upgrade — kollacli 4.0.1.dev498 documentation</title>
|
||||
|
||||
<link rel="stylesheet" href="../../../_static/default.css" type="text/css" />
|
||||
<link rel="stylesheet" href="../../../_static/pygments.css" type="text/css" />
|
||||
@ -14,7 +14,7 @@
|
||||
<script type="text/javascript">
|
||||
var DOCUMENTATION_OPTIONS = {
|
||||
URL_ROOT: '../../../',
|
||||
VERSION: '4.0.0.dev483',
|
||||
VERSION: '4.0.1.dev498',
|
||||
COLLAPSE_INDEX: false,
|
||||
FILE_SUFFIX: '.html',
|
||||
HAS_SOURCE: true
|
||||
@ -23,7 +23,7 @@
|
||||
<script type="text/javascript" src="../../../_static/jquery.js"></script>
|
||||
<script type="text/javascript" src="../../../_static/underscore.js"></script>
|
||||
<script type="text/javascript" src="../../../_static/doctools.js"></script>
|
||||
<link rel="top" title="kollacli 4.0.0.dev483 documentation" href="../../../index.html" />
|
||||
<link rel="top" title="kollacli 4.0.1.dev498 documentation" href="../../../index.html" />
|
||||
<link rel="up" title="Module code" href="../../index.html" />
|
||||
</head>
|
||||
<body>
|
||||
@ -36,7 +36,7 @@
|
||||
<li class="right" >
|
||||
<a href="../../../py-modindex.html" title="Python Module Index"
|
||||
>modules</a> |</li>
|
||||
<li><a href="../../../index.html">kollacli 4.0.0.dev483 documentation</a> »</li>
|
||||
<li><a href="../../../index.html">kollacli 4.0.1.dev498 documentation</a> »</li>
|
||||
<li><a href="../../index.html" accesskey="U">Module code</a> »</li>
|
||||
</ul>
|
||||
</div>
|
||||
@ -92,7 +92,7 @@
|
||||
<span class="n">service_list</span> <span class="o">=</span> <span class="n">parsed_args</span><span class="o">.</span><span class="n">services</span><span class="o">.</span><span class="n">strip</span><span class="p">()</span>
|
||||
<span class="n">services</span> <span class="o">=</span> <span class="n">service_list</span><span class="o">.</span><span class="n">split</span><span class="p">(</span><span class="s1">','</span><span class="p">)</span>
|
||||
<span class="n">verbose_level</span> <span class="o">=</span> <span class="bp">self</span><span class="o">.</span><span class="n">app</span><span class="o">.</span><span class="n">options</span><span class="o">.</span><span class="n">verbose_level</span>
|
||||
<span class="n">job</span> <span class="o">=</span> <span class="n">CLIENT</span><span class="o">.</span><span class="n">async_upgrade</span><span class="p">(</span><span class="n">verbose_level</span><span class="p">,</span> <span class="n">services</span><span class="p">)</span>
|
||||
<span class="n">job</span> <span class="o">=</span> <span class="n">CLIENT</span><span class="o">.</span><span class="n">upgrade</span><span class="p">(</span><span class="n">verbose_level</span><span class="p">,</span> <span class="n">services</span><span class="p">)</span>
|
||||
<span class="n">status</span> <span class="o">=</span> <span class="n">job</span><span class="o">.</span><span class="n">wait</span><span class="p">()</span>
|
||||
<span class="k">if</span> <span class="n">verbose_level</span> <span class="o">></span> <span class="mi">2</span><span class="p">:</span>
|
||||
<span class="n">LOG</span><span class="o">.</span><span class="n">info</span><span class="p">(</span><span class="s1">'</span><span class="se">\n\n</span><span class="s1">'</span> <span class="o">+</span> <span class="mi">80</span> <span class="o">*</span> <span class="s1">'='</span><span class="p">)</span>
|
||||
@ -139,7 +139,7 @@
|
||||
<li class="right" >
|
||||
<a href="../../../py-modindex.html" title="Python Module Index"
|
||||
>modules</a> |</li>
|
||||
<li><a href="../../../index.html">kollacli 4.0.0.dev483 documentation</a> »</li>
|
||||
<li><a href="../../../index.html">kollacli 4.0.1.dev498 documentation</a> »</li>
|
||||
<li><a href="../../index.html" >Module code</a> »</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
@ -6,7 +6,7 @@
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
|
||||
<title>kollacli.common.ansible.actions — kollacli 4.0.0.dev483 documentation</title>
|
||||
<title>kollacli.common.ansible.actions — kollacli 4.0.1.dev498 documentation</title>
|
||||
|
||||
<link rel="stylesheet" href="../../../../_static/default.css" type="text/css" />
|
||||
<link rel="stylesheet" href="../../../../_static/pygments.css" type="text/css" />
|
||||
@ -14,7 +14,7 @@
|
||||
<script type="text/javascript">
|
||||
var DOCUMENTATION_OPTIONS = {
|
||||
URL_ROOT: '../../../../',
|
||||
VERSION: '4.0.0.dev483',
|
||||
VERSION: '4.0.1.dev498',
|
||||
COLLAPSE_INDEX: false,
|
||||
FILE_SUFFIX: '.html',
|
||||
HAS_SOURCE: true
|
||||
@ -23,7 +23,7 @@
|
||||
<script type="text/javascript" src="../../../../_static/jquery.js"></script>
|
||||
<script type="text/javascript" src="../../../../_static/underscore.js"></script>
|
||||
<script type="text/javascript" src="../../../../_static/doctools.js"></script>
|
||||
<link rel="top" title="kollacli 4.0.0.dev483 documentation" href="../../../../index.html" />
|
||||
<link rel="top" title="kollacli 4.0.1.dev498 documentation" href="../../../../index.html" />
|
||||
<link rel="up" title="Module code" href="../../../index.html" />
|
||||
</head>
|
||||
<body>
|
||||
@ -36,7 +36,7 @@
|
||||
<li class="right" >
|
||||
<a href="../../../../py-modindex.html" title="Python Module Index"
|
||||
>modules</a> |</li>
|
||||
<li><a href="../../../../index.html">kollacli 4.0.0.dev483 documentation</a> »</li>
|
||||
<li><a href="../../../../index.html">kollacli 4.0.1.dev498 documentation</a> »</li>
|
||||
<li><a href="../../../index.html" accesskey="U">Module code</a> »</li>
|
||||
</ul>
|
||||
</div>
|
||||
@ -143,6 +143,19 @@
|
||||
<span class="n">job</span> <span class="o">=</span> <span class="n">playbook</span><span class="o">.</span><span class="n">run</span><span class="p">()</span>
|
||||
<span class="k">return</span> <span class="n">job</span>
|
||||
|
||||
</div>
|
||||
<div class="viewcode-block" id="pull"><a class="viewcode-back" href="../../../../kollacli.common.ansible.html#kollacli.common.ansible.actions.pull">[docs]</a><span class="k">def</span> <span class="nf">pull</span><span class="p">(</span><span class="n">verbose_level</span><span class="o">=</span><span class="mi">1</span><span class="p">):</span>
|
||||
<span class="sd">'''run pull action against all hosts'''</span>
|
||||
<span class="n">playbook</span> <span class="o">=</span> <span class="n">AnsiblePlaybook</span><span class="p">()</span>
|
||||
<span class="n">kolla_home</span> <span class="o">=</span> <span class="n">get_kolla_home</span><span class="p">()</span>
|
||||
<span class="n">playbook</span><span class="o">.</span><span class="n">playbook_path</span> <span class="o">=</span> <span class="n">os</span><span class="o">.</span><span class="n">path</span><span class="o">.</span><span class="n">join</span><span class="p">(</span><span class="n">kolla_home</span><span class="p">,</span>
|
||||
<span class="s1">'ansible/site.yml'</span><span class="p">)</span>
|
||||
<span class="n">playbook</span><span class="o">.</span><span class="n">extra_vars</span> <span class="o">=</span> <span class="s1">'action=pull'</span>
|
||||
<span class="n">playbook</span><span class="o">.</span><span class="n">verbose_level</span> <span class="o">=</span> <span class="n">verbose_level</span>
|
||||
|
||||
<span class="n">job</span> <span class="o">=</span> <span class="n">playbook</span><span class="o">.</span><span class="n">run</span><span class="p">()</span>
|
||||
<span class="k">return</span> <span class="n">job</span>
|
||||
|
||||
</div>
|
||||
<div class="viewcode-block" id="stop_hosts"><a class="viewcode-back" href="../../../../kollacli.common.ansible.html#kollacli.common.ansible.actions.stop_hosts">[docs]</a><span class="k">def</span> <span class="nf">stop_hosts</span><span class="p">(</span><span class="n">hostnames</span><span class="o">=</span><span class="p">[],</span> <span class="n">verbose_level</span><span class="o">=</span><span class="mi">1</span><span class="p">):</span>
|
||||
<span class="sd">'''stop containers on a set of hosts.</span>
|
||||
@ -255,8 +268,9 @@
|
||||
<span class="n">expected_files</span> <span class="o">=</span> <span class="p">[</span><span class="s1">'account.ring.gz'</span><span class="p">,</span>
|
||||
<span class="s1">'container.ring.gz'</span><span class="p">,</span>
|
||||
<span class="s1">'object.ring.gz'</span><span class="p">]</span>
|
||||
<span class="n">is_enabled</span> <span class="o">=</span> <span class="n">properties</span><span class="o">.</span><span class="n">get_property</span><span class="p">(</span><span class="s1">'enable_swift'</span><span class="p">)</span>
|
||||
<span class="k">if</span> <span class="n">is_string_true</span><span class="p">(</span><span class="n">is_enabled</span><span class="p">):</span>
|
||||
<span class="n">is_swift_enabled</span> <span class="o">=</span> <span class="n">_is_service_enabled</span><span class="p">(</span><span class="s1">'swift'</span><span class="p">,</span> <span class="n">inventory</span><span class="p">,</span> <span class="n">properties</span><span class="p">)</span>
|
||||
|
||||
<span class="k">if</span> <span class="n">is_swift_enabled</span><span class="p">:</span>
|
||||
<span class="n">path_pre</span> <span class="o">=</span> <span class="n">os</span><span class="o">.</span><span class="n">path</span><span class="o">.</span><span class="n">join</span><span class="p">(</span><span class="n">get_kolla_etc</span><span class="p">(),</span> <span class="s1">'config'</span><span class="p">,</span> <span class="s1">'swift'</span><span class="p">)</span>
|
||||
<span class="k">for</span> <span class="n">expected_file</span> <span class="ow">in</span> <span class="n">expected_files</span><span class="p">:</span>
|
||||
<span class="n">path</span> <span class="o">=</span> <span class="n">os</span><span class="o">.</span><span class="n">path</span><span class="o">.</span><span class="n">join</span><span class="p">(</span><span class="n">path_pre</span><span class="p">,</span> <span class="n">expected_file</span><span class="p">)</span>
|
||||
@ -271,43 +285,13 @@
|
||||
|
||||
|
||||
<span class="k">def</span> <span class="nf">_is_service_enabled</span><span class="p">(</span><span class="n">servicename</span><span class="p">,</span> <span class="n">inventory</span><span class="p">,</span> <span class="n">properties</span><span class="p">):</span>
|
||||
<span class="n">service_enabled</span> <span class="o">=</span> <span class="bp">False</span>
|
||||
<span class="n">service</span> <span class="o">=</span> <span class="bp">None</span>
|
||||
|
||||
<span class="n">sub_service</span> <span class="o">=</span> <span class="n">inventory</span><span class="o">.</span><span class="n">get_sub_service</span><span class="p">(</span><span class="n">servicename</span><span class="p">)</span>
|
||||
<span class="k">if</span> <span class="n">sub_service</span> <span class="ow">is</span> <span class="ow">not</span> <span class="bp">None</span><span class="p">:</span>
|
||||
<span class="n">enabled_property</span> <span class="o">=</span> <span class="s1">'enable_'</span> <span class="o">+</span> <span class="n">servicename</span><span class="o">.</span><span class="n">replace</span><span class="p">(</span><span class="s1">'-'</span><span class="p">,</span> <span class="s1">'_'</span><span class="p">)</span>
|
||||
<span class="n">is_enabled</span> <span class="o">=</span> <span class="n">properties</span><span class="o">.</span><span class="n">get_property</span><span class="p">(</span><span class="n">enabled_property</span><span class="p">)</span>
|
||||
<span class="k">if</span> <span class="n">is_string_true</span><span class="p">(</span><span class="n">is_enabled</span><span class="p">):</span>
|
||||
<span class="n">service_enabled</span> <span class="o">=</span> <span class="bp">True</span>
|
||||
|
||||
<span class="c1"># Only bother looking at the parent service if the sub service</span>
|
||||
<span class="c1"># is enabled.</span>
|
||||
<span class="k">if</span> <span class="n">service_enabled</span><span class="p">:</span>
|
||||
<span class="n">servicename</span> <span class="o">=</span> <span class="n">sub_service</span><span class="o">.</span><span class="n">get_parent_servicename</span><span class="p">()</span>
|
||||
<span class="k">if</span> <span class="n">servicename</span> <span class="ow">is</span> <span class="bp">None</span><span class="p">:</span>
|
||||
<span class="n">servicename</span> <span class="o">=</span> <span class="n">_find_parent_service</span><span class="p">(</span><span class="n">sub_service</span><span class="o">.</span><span class="n">name</span><span class="p">,</span> <span class="n">inventory</span><span class="p">)</span>
|
||||
|
||||
<span class="n">service</span> <span class="o">=</span> <span class="n">inventory</span><span class="o">.</span><span class="n">get_service</span><span class="p">(</span><span class="n">servicename</span><span class="p">)</span>
|
||||
<span class="k">if</span> <span class="n">service</span> <span class="ow">is</span> <span class="ow">not</span> <span class="bp">None</span><span class="p">:</span>
|
||||
<span class="n">enabled_property</span> <span class="o">=</span> <span class="s1">'enable_'</span> <span class="o">+</span> <span class="n">servicename</span><span class="o">.</span><span class="n">replace</span><span class="p">(</span><span class="s1">'-'</span><span class="p">,</span> <span class="s1">'_'</span><span class="p">)</span>
|
||||
<span class="n">is_enabled</span> <span class="o">=</span> <span class="n">properties</span><span class="o">.</span><span class="n">get_property</span><span class="p">(</span><span class="n">enabled_property</span><span class="p">)</span>
|
||||
<span class="k">if</span> <span class="n">is_string_true</span><span class="p">(</span><span class="n">is_enabled</span><span class="p">):</span>
|
||||
<span class="n">service_enabled</span> <span class="o">=</span> <span class="bp">True</span>
|
||||
<span class="k">else</span><span class="p">:</span>
|
||||
<span class="n">service_enabled</span> <span class="o">=</span> <span class="bp">False</span>
|
||||
|
||||
<span class="k">return</span> <span class="n">service_enabled</span>
|
||||
|
||||
|
||||
<span class="k">def</span> <span class="nf">_find_parent_service</span><span class="p">(</span><span class="n">servicename</span><span class="p">,</span> <span class="n">inventory</span><span class="p">):</span>
|
||||
<span class="n">services</span> <span class="o">=</span> <span class="n">inventory</span><span class="o">.</span><span class="n">get_services</span><span class="p">()</span>
|
||||
<span class="k">for</span> <span class="n">service</span> <span class="ow">in</span> <span class="n">services</span><span class="p">:</span>
|
||||
<span class="n">sub_servicenames</span> <span class="o">=</span> <span class="n">service</span><span class="o">.</span><span class="n">get_sub_servicenames</span><span class="p">()</span>
|
||||
<span class="k">for</span> <span class="n">sub_servicename</span> <span class="ow">in</span> <span class="n">sub_servicenames</span><span class="p">:</span>
|
||||
<span class="k">if</span> <span class="n">sub_servicename</span> <span class="o">==</span> <span class="n">servicename</span><span class="p">:</span>
|
||||
<span class="k">return</span> <span class="n">service</span><span class="o">.</span><span class="n">name</span>
|
||||
<span class="k">return</span> <span class="bp">None</span>
|
||||
<span class="n">is_enabled</span> <span class="o">=</span> <span class="n">properties</span><span class="o">.</span><span class="n">get_property_value</span><span class="p">(</span><span class="n">enabled_property</span><span class="p">)</span>
|
||||
<span class="k">if</span> <span class="nb">type</span><span class="p">(</span><span class="n">is_enabled</span><span class="p">)</span> <span class="ow">is</span> <span class="nb">str</span><span class="p">:</span>
|
||||
<span class="n">is_enabled</span> <span class="o">=</span> <span class="n">is_string_true</span><span class="p">(</span><span class="n">is_enabled</span><span class="p">)</span>
|
||||
<span class="k">return</span> <span class="n">is_enabled</span>
|
||||
</pre></div>
|
||||
|
||||
</div>
|
||||
@ -341,7 +325,7 @@
|
||||
<li class="right" >
|
||||
<a href="../../../../py-modindex.html" title="Python Module Index"
|
||||
>modules</a> |</li>
|
||||
<li><a href="../../../../index.html">kollacli 4.0.0.dev483 documentation</a> »</li>
|
||||
<li><a href="../../../../index.html">kollacli 4.0.1.dev498 documentation</a> »</li>
|
||||
<li><a href="../../../index.html" >Module code</a> »</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
@ -6,7 +6,7 @@
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
|
||||
<title>kollacli.common.ansible.job — kollacli 4.0.0.dev483 documentation</title>
|
||||
<title>kollacli.common.ansible.job — kollacli 4.0.1.dev498 documentation</title>
|
||||
|
||||
<link rel="stylesheet" href="../../../../_static/default.css" type="text/css" />
|
||||
<link rel="stylesheet" href="../../../../_static/pygments.css" type="text/css" />
|
||||
@ -14,7 +14,7 @@
|
||||
<script type="text/javascript">
|
||||
var DOCUMENTATION_OPTIONS = {
|
||||
URL_ROOT: '../../../../',
|
||||
VERSION: '4.0.0.dev483',
|
||||
VERSION: '4.0.1.dev498',
|
||||
COLLAPSE_INDEX: false,
|
||||
FILE_SUFFIX: '.html',
|
||||
HAS_SOURCE: true
|
||||
@ -23,7 +23,7 @@
|
||||
<script type="text/javascript" src="../../../../_static/jquery.js"></script>
|
||||
<script type="text/javascript" src="../../../../_static/underscore.js"></script>
|
||||
<script type="text/javascript" src="../../../../_static/doctools.js"></script>
|
||||
<link rel="top" title="kollacli 4.0.0.dev483 documentation" href="../../../../index.html" />
|
||||
<link rel="top" title="kollacli 4.0.1.dev498 documentation" href="../../../../index.html" />
|
||||
<link rel="up" title="Module code" href="../../../index.html" />
|
||||
</head>
|
||||
<body>
|
||||
@ -36,7 +36,7 @@
|
||||
<li class="right" >
|
||||
<a href="../../../../py-modindex.html" title="Python Module Index"
|
||||
>modules</a> |</li>
|
||||
<li><a href="../../../../index.html">kollacli 4.0.0.dev483 documentation</a> »</li>
|
||||
<li><a href="../../../../index.html">kollacli 4.0.1.dev498 documentation</a> »</li>
|
||||
<li><a href="../../../index.html" accesskey="U">Module code</a> »</li>
|
||||
</ul>
|
||||
</div>
|
||||
@ -135,6 +135,14 @@
|
||||
<span class="o">.</span><span class="n">format</span><span class="p">(</span><span class="n">lock</span><span class="o">=</span><span class="n">get_ansible_lock_path</span><span class="p">(),</span> <span class="n">cmd</span><span class="o">=</span><span class="bp">self</span><span class="o">.</span><span class="n">_command</span><span class="p">))</span>
|
||||
|
||||
<span class="n">LOG</span><span class="o">.</span><span class="n">debug</span><span class="p">(</span><span class="s1">'playbook command: </span><span class="si">%s</span><span class="s1">'</span> <span class="o">%</span> <span class="bp">self</span><span class="o">.</span><span class="n">_command</span><span class="p">)</span>
|
||||
<span class="c1"># ansible 2.2 and later introduced an issue where if</span>
|
||||
<span class="c1"># the playbook is executed from within a directory without</span>
|
||||
<span class="c1"># read / write permission (which can happen when you,</span>
|
||||
<span class="c1"># for example, execute via sudo) it will fail. the</span>
|
||||
<span class="c1"># workaround will be to run the ansible command from /tmp</span>
|
||||
<span class="c1"># and then change back to the original directory at the end</span>
|
||||
<span class="n">current_dir</span> <span class="o">=</span> <span class="n">os</span><span class="o">.</span><span class="n">getcwd</span><span class="p">()</span> <span class="c1"># nosec</span>
|
||||
<span class="n">os</span><span class="o">.</span><span class="n">chdir</span><span class="p">(</span><span class="s1">'/tmp'</span><span class="p">)</span> <span class="c1"># nosec</span>
|
||||
<span class="c1"># create and open named pipe, must be owned by kolla group</span>
|
||||
<span class="n">os</span><span class="o">.</span><span class="n">mkfifo</span><span class="p">(</span><span class="bp">self</span><span class="o">.</span><span class="n">_fifo_path</span><span class="p">)</span>
|
||||
<span class="n">_</span><span class="p">,</span> <span class="n">grp_id</span> <span class="o">=</span> <span class="n">get_admin_uids</span><span class="p">()</span>
|
||||
@ -153,6 +161,9 @@
|
||||
<span class="n">flags</span> <span class="o">=</span> <span class="n">fcntl</span><span class="o">.</span><span class="n">fcntl</span><span class="p">(</span><span class="bp">self</span><span class="o">.</span><span class="n">_process</span><span class="o">.</span><span class="n">stdout</span><span class="p">,</span> <span class="n">fcntl</span><span class="o">.</span><span class="n">F_GETFL</span><span class="p">)</span>
|
||||
<span class="n">fcntl</span><span class="o">.</span><span class="n">fcntl</span><span class="p">(</span><span class="bp">self</span><span class="o">.</span><span class="n">_process</span><span class="o">.</span><span class="n">stdout</span><span class="p">,</span> <span class="n">fcntl</span><span class="o">.</span><span class="n">F_SETFL</span><span class="p">,</span>
|
||||
<span class="p">(</span><span class="n">flags</span> <span class="o">|</span> <span class="n">os</span><span class="o">.</span><span class="n">O_NONBLOCK</span><span class="p">))</span>
|
||||
|
||||
<span class="c1"># this is also part of the fix for ansible 2.2 and later</span>
|
||||
<span class="n">os</span><span class="o">.</span><span class="n">chdir</span><span class="p">(</span><span class="n">current_dir</span><span class="p">)</span>
|
||||
<span class="k">except</span> <span class="ne">Exception</span> <span class="k">as</span> <span class="n">e</span><span class="p">:</span>
|
||||
<span class="bp">self</span><span class="o">.</span><span class="n">_cleanup</span><span class="p">()</span>
|
||||
<span class="k">raise</span> <span class="n">e</span>
|
||||
@ -588,7 +599,7 @@
|
||||
<li class="right" >
|
||||
<a href="../../../../py-modindex.html" title="Python Module Index"
|
||||
>modules</a> |</li>
|
||||
<li><a href="../../../../index.html">kollacli 4.0.0.dev483 documentation</a> »</li>
|
||||
<li><a href="../../../../index.html">kollacli 4.0.1.dev498 documentation</a> »</li>
|
||||
<li><a href="../../../index.html" >Module code</a> »</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
@ -6,7 +6,7 @@
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
|
||||
<title>kollacli.common.ansible.playbook — kollacli 4.0.0.dev483 documentation</title>
|
||||
<title>kollacli.common.ansible.playbook — kollacli 4.0.1.dev498 documentation</title>
|
||||
|
||||
<link rel="stylesheet" href="../../../../_static/default.css" type="text/css" />
|
||||
<link rel="stylesheet" href="../../../../_static/pygments.css" type="text/css" />
|
||||
@ -14,7 +14,7 @@
|
||||
<script type="text/javascript">
|
||||
var DOCUMENTATION_OPTIONS = {
|
||||
URL_ROOT: '../../../../',
|
||||
VERSION: '4.0.0.dev483',
|
||||
VERSION: '4.0.1.dev498',
|
||||
COLLAPSE_INDEX: false,
|
||||
FILE_SUFFIX: '.html',
|
||||
HAS_SOURCE: true
|
||||
@ -23,7 +23,7 @@
|
||||
<script type="text/javascript" src="../../../../_static/jquery.js"></script>
|
||||
<script type="text/javascript" src="../../../../_static/underscore.js"></script>
|
||||
<script type="text/javascript" src="../../../../_static/doctools.js"></script>
|
||||
<link rel="top" title="kollacli 4.0.0.dev483 documentation" href="../../../../index.html" />
|
||||
<link rel="top" title="kollacli 4.0.1.dev498 documentation" href="../../../../index.html" />
|
||||
<link rel="up" title="Module code" href="../../../index.html" />
|
||||
</head>
|
||||
<body>
|
||||
@ -36,7 +36,7 @@
|
||||
<li class="right" >
|
||||
<a href="../../../../py-modindex.html" title="Python Module Index"
|
||||
>modules</a> |</li>
|
||||
<li><a href="../../../../index.html">kollacli 4.0.0.dev483 documentation</a> »</li>
|
||||
<li><a href="../../../../index.html">kollacli 4.0.1.dev498 documentation</a> »</li>
|
||||
<li><a href="../../../index.html" accesskey="U">Module code</a> »</li>
|
||||
</ul>
|
||||
</div>
|
||||
@ -254,7 +254,7 @@
|
||||
<li class="right" >
|
||||
<a href="../../../../py-modindex.html" title="Python Module Index"
|
||||
>modules</a> |</li>
|
||||
<li><a href="../../../../index.html">kollacli 4.0.0.dev483 documentation</a> »</li>
|
||||
<li><a href="../../../../index.html">kollacli 4.0.1.dev498 documentation</a> »</li>
|
||||
<li><a href="../../../index.html" >Module code</a> »</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
@ -6,7 +6,7 @@
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
|
||||
<title>kollacli.common.inventory — kollacli 4.0.0.dev483 documentation</title>
|
||||
<title>kollacli.common.inventory — kollacli 4.0.1.dev498 documentation</title>
|
||||
|
||||
<link rel="stylesheet" href="../../../_static/default.css" type="text/css" />
|
||||
<link rel="stylesheet" href="../../../_static/pygments.css" type="text/css" />
|
||||
@ -14,7 +14,7 @@
|
||||
<script type="text/javascript">
|
||||
var DOCUMENTATION_OPTIONS = {
|
||||
URL_ROOT: '../../../',
|
||||
VERSION: '4.0.0.dev483',
|
||||
VERSION: '4.0.1.dev498',
|
||||
COLLAPSE_INDEX: false,
|
||||
FILE_SUFFIX: '.html',
|
||||
HAS_SOURCE: true
|
||||
@ -23,7 +23,7 @@
|
||||
<script type="text/javascript" src="../../../_static/jquery.js"></script>
|
||||
<script type="text/javascript" src="../../../_static/underscore.js"></script>
|
||||
<script type="text/javascript" src="../../../_static/doctools.js"></script>
|
||||
<link rel="top" title="kollacli 4.0.0.dev483 documentation" href="../../../index.html" />
|
||||
<link rel="top" title="kollacli 4.0.1.dev498 documentation" href="../../../index.html" />
|
||||
<link rel="up" title="Module code" href="../../index.html" />
|
||||
</head>
|
||||
<body>
|
||||
@ -36,7 +36,7 @@
|
||||
<li class="right" >
|
||||
<a href="../../../py-modindex.html" title="Python Module Index"
|
||||
>modules</a> |</li>
|
||||
<li><a href="../../../index.html">kollacli 4.0.0.dev483 documentation</a> »</li>
|
||||
<li><a href="../../../index.html">kollacli 4.0.1.dev498 documentation</a> »</li>
|
||||
<li><a href="../../index.html" accesskey="U">Module code</a> »</li>
|
||||
</ul>
|
||||
</div>
|
||||
@ -82,7 +82,6 @@
|
||||
<span class="kn">from</span> <span class="nn">kollacli.common.host_group</span> <span class="kn">import</span> <span class="n">HostGroup</span>
|
||||
<span class="kn">from</span> <span class="nn">kollacli.common.service</span> <span class="kn">import</span> <span class="n">Service</span>
|
||||
<span class="kn">from</span> <span class="nn">kollacli.common.sshutils</span> <span class="kn">import</span> <span class="n">ssh_setup_host</span>
|
||||
<span class="kn">from</span> <span class="nn">kollacli.common.subservice</span> <span class="kn">import</span> <span class="n">SubService</span>
|
||||
<span class="kn">from</span> <span class="nn">kollacli.common.utils</span> <span class="kn">import</span> <span class="n">get_admin_uids</span>
|
||||
<span class="kn">from</span> <span class="nn">kollacli.common.utils</span> <span class="kn">import</span> <span class="n">get_admin_user</span>
|
||||
<span class="kn">from</span> <span class="nn">kollacli.common.utils</span> <span class="kn">import</span> <span class="n">get_ansible_command</span>
|
||||
@ -119,9 +118,11 @@
|
||||
|
||||
</div>
|
||||
<div class="viewcode-block" id="Inventory"><a class="viewcode-back" href="../../../kollacli.common.html#kollacli.common.inventory.Inventory">[docs]</a><span class="k">class</span> <span class="nc">Inventory</span><span class="p">(</span><span class="nb">object</span><span class="p">):</span>
|
||||
<span class="n">class_version</span> <span class="o">=</span> <span class="mi">3</span>
|
||||
<span class="n">class_version</span> <span class="o">=</span> <span class="mi">4</span>
|
||||
<span class="sd">"""class version history</span>
|
||||
|
||||
<span class="sd"> 4: (v4.0.1):</span>
|
||||
<span class="sd"> - removed concept of sub-services (not backward compatible)</span>
|
||||
<span class="sd"> 3: (v3.0.1):</span>
|
||||
<span class="sd"> - added aodh, ceph</span>
|
||||
<span class="sd"> - fix to ensure all sub-services have service as parent</span>
|
||||
@ -132,7 +133,6 @@
|
||||
<span class="bp">self</span><span class="o">.</span><span class="n">_groups</span> <span class="o">=</span> <span class="p">{}</span> <span class="c1"># kv = name:object</span>
|
||||
<span class="bp">self</span><span class="o">.</span><span class="n">_hosts</span> <span class="o">=</span> <span class="p">{}</span> <span class="c1"># kv = name:object</span>
|
||||
<span class="bp">self</span><span class="o">.</span><span class="n">_services</span> <span class="o">=</span> <span class="p">{}</span> <span class="c1"># kv = name:object</span>
|
||||
<span class="bp">self</span><span class="o">.</span><span class="n">_sub_services</span> <span class="o">=</span> <span class="p">{}</span> <span class="c1"># kv = name:object</span>
|
||||
<span class="bp">self</span><span class="o">.</span><span class="n">vars</span> <span class="o">=</span> <span class="p">{}</span>
|
||||
<span class="bp">self</span><span class="o">.</span><span class="n">version</span> <span class="o">=</span> <span class="bp">self</span><span class="o">.</span><span class="vm">__class__</span><span class="o">.</span><span class="n">class_version</span>
|
||||
<span class="bp">self</span><span class="o">.</span><span class="n">remote_mode</span> <span class="o">=</span> <span class="bp">True</span>
|
||||
@ -142,48 +142,22 @@
|
||||
|
||||
<div class="viewcode-block" id="Inventory.upgrade"><a class="viewcode-back" href="../../../kollacli.common.html#kollacli.common.inventory.Inventory.upgrade">[docs]</a> <span class="k">def</span> <span class="nf">upgrade</span><span class="p">(</span><span class="bp">self</span><span class="p">):</span>
|
||||
<span class="c1"># check for new services or subservices in the all-in-one file</span>
|
||||
<span class="c1"># leaving in this hook but no upgrade from <4 to 4 is supported</span>
|
||||
<span class="c1"># so yanking out all upgrade logic</span>
|
||||
<span class="bp">self</span><span class="o">.</span><span class="n">_upgrade_services</span><span class="p">()</span>
|
||||
|
||||
<span class="k">if</span> <span class="bp">self</span><span class="o">.</span><span class="n">version</span> <span class="o"><=</span> <span class="mi">1</span><span class="p">:</span>
|
||||
<span class="c1"># upgrade from inventory v1</span>
|
||||
|
||||
<span class="c1"># set ceilometer groups to that of heat</span>
|
||||
<span class="n">heat</span> <span class="o">=</span> <span class="bp">self</span><span class="o">.</span><span class="n">get_service</span><span class="p">(</span><span class="s1">'heat'</span><span class="p">)</span>
|
||||
<span class="n">ceilometer</span> <span class="o">=</span> <span class="bp">self</span><span class="o">.</span><span class="n">get_service</span><span class="p">(</span><span class="s1">'ceilometer'</span><span class="p">)</span>
|
||||
<span class="n">groups</span> <span class="o">=</span> <span class="n">heat</span><span class="o">.</span><span class="n">get_groupnames</span><span class="p">()</span>
|
||||
<span class="k">for</span> <span class="n">group</span> <span class="ow">in</span> <span class="n">groups</span><span class="p">:</span>
|
||||
<span class="n">ceilometer</span><span class="o">.</span><span class="n">add_groupname</span><span class="p">(</span><span class="n">group</span><span class="p">)</span>
|
||||
|
||||
<span class="k">if</span> <span class="bp">self</span><span class="o">.</span><span class="n">version</span> <span class="o"><=</span> <span class="mi">2</span><span class="p">:</span>
|
||||
<span class="c1"># upgrade from inventory v2</span>
|
||||
|
||||
<span class="c1"># some sub-services may be missing their parent associations.</span>
|
||||
<span class="c1"># they are now needed in v3.</span>
|
||||
<span class="k">for</span> <span class="n">svc</span> <span class="ow">in</span> <span class="bp">self</span><span class="o">.</span><span class="n">get_services</span><span class="p">():</span>
|
||||
<span class="k">for</span> <span class="n">sub_svcname</span> <span class="ow">in</span> <span class="n">svc</span><span class="o">.</span><span class="n">get_sub_servicenames</span><span class="p">():</span>
|
||||
<span class="n">sub_svc</span> <span class="o">=</span> <span class="bp">self</span><span class="o">.</span><span class="n">get_sub_service</span><span class="p">(</span><span class="n">sub_svcname</span><span class="p">)</span>
|
||||
<span class="k">if</span> <span class="ow">not</span> <span class="n">sub_svc</span><span class="o">.</span><span class="n">get_parent_servicename</span><span class="p">():</span>
|
||||
<span class="n">sub_svc</span><span class="o">.</span><span class="n">set_parent_servicename</span><span class="p">(</span><span class="n">svc</span><span class="o">.</span><span class="n">name</span><span class="p">)</span>
|
||||
|
||||
<span class="c1"># update the version and save upgraded inventory file</span>
|
||||
<span class="bp">self</span><span class="o">.</span><span class="n">version</span> <span class="o">=</span> <span class="bp">self</span><span class="o">.</span><span class="vm">__class__</span><span class="o">.</span><span class="n">class_version</span>
|
||||
<span class="n">Inventory</span><span class="o">.</span><span class="n">save</span><span class="p">(</span><span class="bp">self</span><span class="p">)</span>
|
||||
</div>
|
||||
<span class="k">def</span> <span class="nf">_upgrade_services</span><span class="p">(</span><span class="bp">self</span><span class="p">):</span>
|
||||
<span class="n">allinone</span> <span class="o">=</span> <span class="n">AllInOne</span><span class="p">()</span>
|
||||
|
||||
<span class="c1"># add new services</span>
|
||||
<span class="k">for</span> <span class="n">servicename</span><span class="p">,</span> <span class="n">service</span> <span class="ow">in</span> <span class="n">allinone</span><span class="o">.</span><span class="n">services</span><span class="o">.</span><span class="n">items</span><span class="p">():</span>
|
||||
<span class="k">if</span> <span class="n">servicename</span> <span class="ow">not</span> <span class="ow">in</span> <span class="bp">self</span><span class="o">.</span><span class="n">_services</span><span class="p">:</span>
|
||||
<span class="bp">self</span><span class="o">.</span><span class="n">_services</span><span class="p">[</span><span class="n">servicename</span><span class="p">]</span> <span class="o">=</span> <span class="n">service</span>
|
||||
<span class="c1"># add new subservices</span>
|
||||
<span class="k">for</span> <span class="n">subservicename</span><span class="p">,</span> <span class="n">subservice</span> <span class="ow">in</span> <span class="n">allinone</span><span class="o">.</span><span class="n">sub_services</span><span class="o">.</span><span class="n">items</span><span class="p">():</span>
|
||||
<span class="k">if</span> <span class="n">subservicename</span> <span class="ow">not</span> <span class="ow">in</span> <span class="bp">self</span><span class="o">.</span><span class="n">_sub_services</span><span class="p">:</span>
|
||||
<span class="bp">self</span><span class="o">.</span><span class="n">_sub_services</span><span class="p">[</span><span class="n">subservicename</span><span class="p">]</span> <span class="o">=</span> <span class="n">subservice</span>
|
||||
|
||||
<span class="c1"># remove obsolete subservices</span>
|
||||
<span class="k">for</span> <span class="n">subservicename</span> <span class="ow">in</span> <span class="n">copy</span><span class="p">(</span><span class="bp">self</span><span class="o">.</span><span class="n">_sub_services</span><span class="p">)</span><span class="o">.</span><span class="n">keys</span><span class="p">():</span>
|
||||
<span class="k">if</span> <span class="n">subservicename</span> <span class="ow">not</span> <span class="ow">in</span> <span class="n">allinone</span><span class="o">.</span><span class="n">sub_services</span><span class="p">:</span>
|
||||
<span class="bp">self</span><span class="o">.</span><span class="n">delete_sub_service</span><span class="p">(</span><span class="n">subservicename</span><span class="p">)</span>
|
||||
<span class="c1"># remove obsolete services</span>
|
||||
<span class="k">for</span> <span class="n">servicename</span> <span class="ow">in</span> <span class="n">copy</span><span class="p">(</span><span class="bp">self</span><span class="o">.</span><span class="n">_services</span><span class="p">)</span><span class="o">.</span><span class="n">keys</span><span class="p">():</span>
|
||||
<span class="k">if</span> <span class="n">servicename</span> <span class="ow">not</span> <span class="ow">in</span> <span class="n">allinone</span><span class="o">.</span><span class="n">services</span><span class="p">:</span>
|
||||
@ -198,30 +172,6 @@
|
||||
<span class="k">if</span> <span class="n">os</span><span class="o">.</span><span class="n">path</span><span class="o">.</span><span class="n">exists</span><span class="p">(</span><span class="n">inventory_path</span><span class="p">):</span>
|
||||
<span class="n">data</span> <span class="o">=</span> <span class="n">sync_read_file</span><span class="p">(</span><span class="n">inventory_path</span><span class="p">)</span>
|
||||
|
||||
<span class="c1"># The inventory path changed between v1 and v2. Need to change</span>
|
||||
<span class="c1"># path throughout the inventory. This has to be done before</span>
|
||||
<span class="c1"># the pickle decode.</span>
|
||||
<span class="k">if</span> <span class="s1">'kollacli.common.inventory'</span> <span class="ow">not</span> <span class="ow">in</span> <span class="n">data</span><span class="p">:</span>
|
||||
<span class="n">data</span> <span class="o">=</span> <span class="n">data</span><span class="o">.</span><span class="n">replace</span><span class="p">(</span>
|
||||
<span class="s1">'"py/object": "kollacli.ansible.inventory.'</span><span class="p">,</span>
|
||||
<span class="s1">'"py/object": "kollacli.common.inventory.'</span><span class="p">)</span>
|
||||
|
||||
<span class="c1"># The Host, HostGroup, Service and SubService were moved out of</span>
|
||||
<span class="c1"># inventory and into their own modules</span>
|
||||
<span class="k">if</span> <span class="s1">'kollacli.common.service'</span> <span class="ow">not</span> <span class="ow">in</span> <span class="n">data</span><span class="p">:</span>
|
||||
<span class="n">data</span> <span class="o">=</span> <span class="n">data</span><span class="o">.</span><span class="n">replace</span><span class="p">(</span>
|
||||
<span class="s1">'"py/object": "kollacli.common.inventory.Service"'</span><span class="p">,</span>
|
||||
<span class="s1">'"py/object": "kollacli.common.service.Service"'</span><span class="p">)</span>
|
||||
<span class="n">data</span> <span class="o">=</span> <span class="n">data</span><span class="o">.</span><span class="n">replace</span><span class="p">(</span>
|
||||
<span class="s1">'"py/object": "kollacli.common.inventory.SubService"'</span><span class="p">,</span>
|
||||
<span class="s1">'"py/object": "kollacli.common.subservice.SubService"'</span><span class="p">)</span>
|
||||
<span class="n">data</span> <span class="o">=</span> <span class="n">data</span><span class="o">.</span><span class="n">replace</span><span class="p">(</span>
|
||||
<span class="s1">'"py/object": "kollacli.common.inventory.Host"'</span><span class="p">,</span>
|
||||
<span class="s1">'"py/object": "kollacli.common.host.Host"'</span><span class="p">)</span>
|
||||
<span class="n">data</span> <span class="o">=</span> <span class="n">data</span><span class="o">.</span><span class="n">replace</span><span class="p">(</span>
|
||||
<span class="s1">'"py/object": "kollacli.common.inventory.HostGroup"'</span><span class="p">,</span>
|
||||
<span class="s1">'"py/object": "kollacli.common.host_group.HostGroup"'</span><span class="p">)</span>
|
||||
|
||||
<span class="k">if</span> <span class="n">data</span><span class="o">.</span><span class="n">strip</span><span class="p">():</span>
|
||||
<span class="n">inventory</span> <span class="o">=</span> <span class="n">jsonpickle</span><span class="o">.</span><span class="n">decode</span><span class="p">(</span><span class="n">data</span><span class="p">)</span>
|
||||
|
||||
@ -230,6 +180,7 @@
|
||||
<span class="n">inventory</span><span class="o">.</span><span class="n">upgrade</span><span class="p">()</span>
|
||||
<span class="k">else</span><span class="p">:</span>
|
||||
<span class="n">inventory</span> <span class="o">=</span> <span class="n">Inventory</span><span class="p">()</span>
|
||||
<span class="n">Inventory</span><span class="o">.</span><span class="n">save</span><span class="p">(</span><span class="n">inventory</span><span class="p">)</span>
|
||||
<span class="k">except</span> <span class="ne">Exception</span><span class="p">:</span>
|
||||
<span class="k">raise</span> <span class="n">FailedOperation</span><span class="p">(</span>
|
||||
<span class="n">u</span><span class="o">.</span><span class="n">_</span><span class="p">(</span><span class="s1">'Loading inventory failed. : {error}'</span><span class="p">)</span>
|
||||
@ -422,7 +373,7 @@
|
||||
<span class="k">return</span> <span class="n">is_ok</span><span class="p">,</span> <span class="n">msg</span>
|
||||
</div>
|
||||
<div class="viewcode-block" id="Inventory.run_ansible_command"><a class="viewcode-back" href="../../../kollacli.common.html#kollacli.common.inventory.Inventory.run_ansible_command">[docs]</a> <span class="k">def</span> <span class="nf">run_ansible_command</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">ansible_command</span><span class="p">,</span> <span class="n">hostname</span><span class="p">):</span>
|
||||
<span class="n">err_msg</span> <span class="o">=</span> <span class="bp">None</span>
|
||||
<span class="n">output</span> <span class="o">=</span> <span class="bp">None</span>
|
||||
<span class="n">command_string</span> <span class="o">=</span> <span class="s1">'/usr/bin/sudo -u </span><span class="si">%s</span><span class="s1"> </span><span class="si">%s</span><span class="s1"> -vvv'</span> <span class="o">%</span> \
|
||||
<span class="p">(</span><span class="n">get_admin_user</span><span class="p">(),</span> <span class="n">get_ansible_command</span><span class="p">())</span>
|
||||
<span class="n">gen_file_path</span> <span class="o">=</span> <span class="bp">self</span><span class="o">.</span><span class="n">create_json_gen_file</span><span class="p">()</span>
|
||||
@ -439,7 +390,7 @@
|
||||
<div class="viewcode-block" id="Inventory.add_group"><a class="viewcode-back" href="../../../kollacli.common.html#kollacli.common.inventory.Inventory.add_group">[docs]</a> <span class="k">def</span> <span class="nf">add_group</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">groupname</span><span class="p">):</span>
|
||||
|
||||
<span class="c1"># Group names cannot overlap with service names:</span>
|
||||
<span class="k">if</span> <span class="n">groupname</span> <span class="ow">in</span> <span class="bp">self</span><span class="o">.</span><span class="n">_services</span> <span class="ow">or</span> <span class="n">groupname</span> <span class="ow">in</span> <span class="bp">self</span><span class="o">.</span><span class="n">_sub_services</span><span class="p">:</span>
|
||||
<span class="k">if</span> <span class="n">groupname</span> <span class="ow">in</span> <span class="bp">self</span><span class="o">.</span><span class="n">_services</span><span class="p">:</span>
|
||||
<span class="k">raise</span> <span class="n">InvalidArgument</span><span class="p">(</span>
|
||||
<span class="n">u</span><span class="o">.</span><span class="n">_</span><span class="p">(</span><span class="s1">'Invalid group name. A service name '</span>
|
||||
<span class="s1">'cannot be used for a group name.'</span><span class="p">))</span>
|
||||
@ -459,13 +410,10 @@
|
||||
<span class="n">u</span><span class="o">.</span><span class="n">_</span><span class="p">(</span><span class="s1">'Cannot remove {group} group. It is required by kolla.'</span><span class="p">)</span>
|
||||
<span class="o">.</span><span class="n">format</span><span class="p">(</span><span class="n">group</span><span class="o">=</span><span class="n">groupname</span><span class="p">))</span>
|
||||
|
||||
<span class="c1"># remove group from services & subservices</span>
|
||||
<span class="c1"># remove group from services</span>
|
||||
<span class="k">for</span> <span class="n">service</span> <span class="ow">in</span> <span class="bp">self</span><span class="o">.</span><span class="n">_services</span><span class="o">.</span><span class="n">values</span><span class="p">():</span>
|
||||
<span class="n">service</span><span class="o">.</span><span class="n">remove_groupname</span><span class="p">(</span><span class="n">groupname</span><span class="p">)</span>
|
||||
|
||||
<span class="k">for</span> <span class="n">subservice</span> <span class="ow">in</span> <span class="bp">self</span><span class="o">.</span><span class="n">_sub_services</span><span class="o">.</span><span class="n">values</span><span class="p">():</span>
|
||||
<span class="n">subservice</span><span class="o">.</span><span class="n">remove_groupname</span><span class="p">(</span><span class="n">groupname</span><span class="p">)</span>
|
||||
|
||||
<span class="n">group_vars</span> <span class="o">=</span> <span class="n">os</span><span class="o">.</span><span class="n">path</span><span class="o">.</span><span class="n">join</span><span class="p">(</span><span class="n">get_group_vars_dir</span><span class="p">(),</span> <span class="n">groupname</span><span class="p">)</span>
|
||||
<span class="k">if</span> <span class="n">os</span><span class="o">.</span><span class="n">path</span><span class="o">.</span><span class="n">exists</span><span class="p">(</span><span class="n">group_vars</span><span class="p">)</span> <span class="ow">and</span> <span class="n">groupname</span> <span class="o">!=</span> <span class="s1">'__GLOBAL__'</span><span class="p">:</span>
|
||||
<span class="n">os</span><span class="o">.</span><span class="n">remove</span><span class="p">(</span><span class="n">group_vars</span><span class="p">)</span>
|
||||
@ -522,9 +470,6 @@
|
||||
<span class="k">for</span> <span class="n">svc</span> <span class="ow">in</span> <span class="bp">self</span><span class="o">.</span><span class="n">get_services</span><span class="p">():</span>
|
||||
<span class="k">for</span> <span class="n">groupname</span> <span class="ow">in</span> <span class="n">svc</span><span class="o">.</span><span class="n">get_groupnames</span><span class="p">():</span>
|
||||
<span class="n">group_services</span><span class="p">[</span><span class="n">groupname</span><span class="p">]</span><span class="o">.</span><span class="n">append</span><span class="p">(</span><span class="n">svc</span><span class="o">.</span><span class="n">name</span><span class="p">)</span>
|
||||
<span class="k">for</span> <span class="n">sub_svc</span> <span class="ow">in</span> <span class="bp">self</span><span class="o">.</span><span class="n">get_sub_services</span><span class="p">():</span>
|
||||
<span class="k">for</span> <span class="n">groupname</span> <span class="ow">in</span> <span class="n">sub_svc</span><span class="o">.</span><span class="n">get_groupnames</span><span class="p">():</span>
|
||||
<span class="n">group_services</span><span class="p">[</span><span class="n">groupname</span><span class="p">]</span><span class="o">.</span><span class="n">append</span><span class="p">(</span><span class="n">sub_svc</span><span class="o">.</span><span class="n">name</span><span class="p">)</span>
|
||||
<span class="k">return</span> <span class="n">group_services</span>
|
||||
</div>
|
||||
<div class="viewcode-block" id="Inventory.get_group_hosts"><a class="viewcode-back" href="../../../kollacli.common.html#kollacli.common.inventory.Inventory.get_group_hosts">[docs]</a> <span class="k">def</span> <span class="nf">get_group_hosts</span><span class="p">(</span><span class="bp">self</span><span class="p">):</span>
|
||||
@ -543,19 +488,36 @@
|
||||
<span class="k">return</span> <span class="bp">self</span><span class="o">.</span><span class="n">_services</span><span class="p">[</span><span class="n">servicename</span><span class="p">]</span>
|
||||
</div>
|
||||
<div class="viewcode-block" id="Inventory.delete_service"><a class="viewcode-back" href="../../../kollacli.common.html#kollacli.common.inventory.Inventory.delete_service">[docs]</a> <span class="k">def</span> <span class="nf">delete_service</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">servicename</span><span class="p">):</span>
|
||||
<span class="c1"># remove references to this service from all parent / child services</span>
|
||||
<span class="k">if</span> <span class="n">servicename</span> <span class="ow">in</span> <span class="bp">self</span><span class="o">.</span><span class="n">_services</span><span class="p">:</span>
|
||||
<span class="n">service</span> <span class="o">=</span> <span class="bp">self</span><span class="o">.</span><span class="n">_services</span><span class="p">[</span><span class="n">servicename</span><span class="p">]</span>
|
||||
<span class="k">for</span> <span class="n">sub_servicename</span> <span class="ow">in</span> <span class="n">service</span><span class="o">.</span><span class="n">get_sub_servicenames</span><span class="p">():</span>
|
||||
<span class="bp">self</span><span class="o">.</span><span class="n">delete_sub_service</span><span class="p">(</span><span class="n">sub_servicename</span><span class="p">)</span>
|
||||
<span class="k">for</span> <span class="n">parentname</span> <span class="ow">in</span> <span class="n">service</span><span class="o">.</span><span class="n">get_parentnames</span><span class="p">():</span>
|
||||
<span class="n">parent</span> <span class="o">=</span> <span class="bp">self</span><span class="o">.</span><span class="n">_services</span><span class="p">[</span><span class="n">parentname</span><span class="p">]</span>
|
||||
<span class="n">parent</span><span class="o">.</span><span class="n">remove_childname</span><span class="p">(</span><span class="n">servicename</span><span class="p">)</span>
|
||||
<span class="k">for</span> <span class="n">childname</span> <span class="ow">in</span> <span class="n">service</span><span class="o">.</span><span class="n">get_childnames</span><span class="p">():</span>
|
||||
<span class="n">child</span> <span class="o">=</span> <span class="bp">self</span><span class="o">.</span><span class="n">_services</span><span class="p">[</span><span class="n">childname</span><span class="p">]</span>
|
||||
<span class="n">child</span><span class="o">.</span><span class="n">remove_parentname</span><span class="p">(</span><span class="n">servicename</span><span class="p">)</span>
|
||||
|
||||
<span class="c1"># then remove the service itself</span>
|
||||
<span class="k">del</span> <span class="bp">self</span><span class="o">.</span><span class="n">_services</span><span class="p">[</span><span class="n">servicename</span><span class="p">]</span>
|
||||
</div>
|
||||
<div class="viewcode-block" id="Inventory.get_services"><a class="viewcode-back" href="../../../kollacli.common.html#kollacli.common.inventory.Inventory.get_services">[docs]</a> <span class="k">def</span> <span class="nf">get_services</span><span class="p">(</span><span class="bp">self</span><span class="p">):</span>
|
||||
<span class="k">return</span> <span class="bp">self</span><span class="o">.</span><span class="n">_services</span><span class="o">.</span><span class="n">values</span><span class="p">()</span>
|
||||
<div class="viewcode-block" id="Inventory.get_services"><a class="viewcode-back" href="../../../kollacli.common.html#kollacli.common.inventory.Inventory.get_services">[docs]</a> <span class="k">def</span> <span class="nf">get_services</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">client_filter</span><span class="o">=</span><span class="bp">False</span><span class="p">):</span>
|
||||
<span class="k">if</span> <span class="n">client_filter</span><span class="p">:</span>
|
||||
<span class="n">services</span> <span class="o">=</span> <span class="bp">self</span><span class="o">.</span><span class="n">_client_filtered_service_dict</span><span class="p">()</span>
|
||||
<span class="k">else</span><span class="p">:</span>
|
||||
<span class="n">services</span> <span class="o">=</span> <span class="bp">self</span><span class="o">.</span><span class="n">_services</span>
|
||||
|
||||
<span class="k">return</span> <span class="n">services</span><span class="o">.</span><span class="n">values</span><span class="p">()</span>
|
||||
</div>
|
||||
<div class="viewcode-block" id="Inventory.get_service"><a class="viewcode-back" href="../../../kollacli.common.html#kollacli.common.inventory.Inventory.get_service">[docs]</a> <span class="k">def</span> <span class="nf">get_service</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">servicename</span><span class="p">):</span>
|
||||
<div class="viewcode-block" id="Inventory.get_service"><a class="viewcode-back" href="../../../kollacli.common.html#kollacli.common.inventory.Inventory.get_service">[docs]</a> <span class="k">def</span> <span class="nf">get_service</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">servicename</span><span class="p">,</span> <span class="n">client_filter</span><span class="o">=</span><span class="bp">False</span><span class="p">):</span>
|
||||
<span class="n">service</span> <span class="o">=</span> <span class="bp">None</span>
|
||||
<span class="k">if</span> <span class="n">servicename</span> <span class="ow">in</span> <span class="bp">self</span><span class="o">.</span><span class="n">_services</span><span class="p">:</span>
|
||||
<span class="n">service</span> <span class="o">=</span> <span class="bp">self</span><span class="o">.</span><span class="n">_services</span><span class="p">[</span><span class="n">servicename</span><span class="p">]</span>
|
||||
<span class="k">if</span> <span class="n">client_filter</span><span class="p">:</span>
|
||||
<span class="n">services</span> <span class="o">=</span> <span class="bp">self</span><span class="o">.</span><span class="n">_client_filtered_service_dict</span><span class="p">()</span>
|
||||
<span class="k">else</span><span class="p">:</span>
|
||||
<span class="n">services</span> <span class="o">=</span> <span class="bp">self</span><span class="o">.</span><span class="n">_services</span>
|
||||
|
||||
<span class="k">if</span> <span class="n">servicename</span> <span class="ow">in</span> <span class="n">services</span><span class="p">:</span>
|
||||
<span class="n">service</span> <span class="o">=</span> <span class="n">services</span><span class="p">[</span><span class="n">servicename</span><span class="p">]</span>
|
||||
<span class="k">return</span> <span class="n">service</span>
|
||||
</div>
|
||||
<div class="viewcode-block" id="Inventory.add_group_to_service"><a class="viewcode-back" href="../../../kollacli.common.html#kollacli.common.inventory.Inventory.add_group_to_service">[docs]</a> <span class="k">def</span> <span class="nf">add_group_to_service</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">groupname</span><span class="p">,</span> <span class="n">servicename</span><span class="p">):</span>
|
||||
@ -564,9 +526,6 @@
|
||||
<span class="k">if</span> <span class="n">servicename</span> <span class="ow">in</span> <span class="bp">self</span><span class="o">.</span><span class="n">_services</span><span class="p">:</span>
|
||||
<span class="n">service</span> <span class="o">=</span> <span class="bp">self</span><span class="o">.</span><span class="n">get_service</span><span class="p">(</span><span class="n">servicename</span><span class="p">)</span>
|
||||
<span class="n">service</span><span class="o">.</span><span class="n">add_groupname</span><span class="p">(</span><span class="n">groupname</span><span class="p">)</span>
|
||||
<span class="k">elif</span> <span class="n">servicename</span> <span class="ow">in</span> <span class="bp">self</span><span class="o">.</span><span class="n">_sub_services</span><span class="p">:</span>
|
||||
<span class="n">sub_service</span> <span class="o">=</span> <span class="bp">self</span><span class="o">.</span><span class="n">get_sub_service</span><span class="p">(</span><span class="n">servicename</span><span class="p">)</span>
|
||||
<span class="n">sub_service</span><span class="o">.</span><span class="n">add_groupname</span><span class="p">(</span><span class="n">groupname</span><span class="p">)</span>
|
||||
<span class="k">else</span><span class="p">:</span>
|
||||
<span class="k">raise</span> <span class="n">NotInInventory</span><span class="p">(</span><span class="n">u</span><span class="o">.</span><span class="n">_</span><span class="p">(</span><span class="s1">'Service'</span><span class="p">),</span> <span class="n">servicename</span><span class="p">)</span>
|
||||
</div>
|
||||
@ -576,47 +535,9 @@
|
||||
<span class="k">if</span> <span class="n">servicename</span> <span class="ow">in</span> <span class="bp">self</span><span class="o">.</span><span class="n">_services</span><span class="p">:</span>
|
||||
<span class="n">service</span> <span class="o">=</span> <span class="bp">self</span><span class="o">.</span><span class="n">get_service</span><span class="p">(</span><span class="n">servicename</span><span class="p">)</span>
|
||||
<span class="n">service</span><span class="o">.</span><span class="n">remove_groupname</span><span class="p">(</span><span class="n">groupname</span><span class="p">)</span>
|
||||
<span class="k">elif</span> <span class="n">servicename</span> <span class="ow">in</span> <span class="bp">self</span><span class="o">.</span><span class="n">_sub_services</span><span class="p">:</span>
|
||||
<span class="n">sub_service</span> <span class="o">=</span> <span class="bp">self</span><span class="o">.</span><span class="n">get_sub_service</span><span class="p">(</span><span class="n">servicename</span><span class="p">)</span>
|
||||
<span class="n">sub_service</span><span class="o">.</span><span class="n">remove_groupname</span><span class="p">(</span><span class="n">groupname</span><span class="p">)</span>
|
||||
<span class="k">else</span><span class="p">:</span>
|
||||
<span class="k">raise</span> <span class="n">NotInInventory</span><span class="p">(</span><span class="n">u</span><span class="o">.</span><span class="n">_</span><span class="p">(</span><span class="s1">'Service'</span><span class="p">),</span> <span class="n">servicename</span><span class="p">)</span>
|
||||
</div>
|
||||
<div class="viewcode-block" id="Inventory.create_sub_service"><a class="viewcode-back" href="../../../kollacli.common.html#kollacli.common.inventory.Inventory.create_sub_service">[docs]</a> <span class="k">def</span> <span class="nf">create_sub_service</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">sub_servicename</span><span class="p">):</span>
|
||||
<span class="k">if</span> <span class="n">sub_servicename</span> <span class="ow">not</span> <span class="ow">in</span> <span class="bp">self</span><span class="o">.</span><span class="n">_sub_services</span><span class="p">:</span>
|
||||
<span class="n">sub_service</span> <span class="o">=</span> <span class="n">SubService</span><span class="p">(</span><span class="n">sub_servicename</span><span class="p">)</span>
|
||||
<span class="bp">self</span><span class="o">.</span><span class="n">_sub_services</span><span class="p">[</span><span class="n">sub_servicename</span><span class="p">]</span> <span class="o">=</span> <span class="n">sub_service</span>
|
||||
<span class="k">return</span> <span class="bp">self</span><span class="o">.</span><span class="n">_sub_services</span><span class="p">[</span><span class="n">sub_servicename</span><span class="p">]</span>
|
||||
</div>
|
||||
<div class="viewcode-block" id="Inventory.delete_sub_service"><a class="viewcode-back" href="../../../kollacli.common.html#kollacli.common.inventory.Inventory.delete_sub_service">[docs]</a> <span class="k">def</span> <span class="nf">delete_sub_service</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">sub_servicename</span><span class="p">):</span>
|
||||
<span class="k">if</span> <span class="n">sub_servicename</span> <span class="ow">in</span> <span class="bp">self</span><span class="o">.</span><span class="n">_sub_services</span><span class="p">:</span>
|
||||
<span class="n">sub_service</span> <span class="o">=</span> <span class="bp">self</span><span class="o">.</span><span class="n">_sub_services</span><span class="p">[</span><span class="n">sub_servicename</span><span class="p">]</span>
|
||||
<span class="n">parentname</span> <span class="o">=</span> <span class="n">sub_service</span><span class="o">.</span><span class="n">get_parent_servicename</span><span class="p">()</span>
|
||||
<span class="n">parent</span> <span class="o">=</span> <span class="bp">self</span><span class="o">.</span><span class="n">_services</span><span class="p">[</span><span class="n">parentname</span><span class="p">]</span>
|
||||
<span class="k">if</span> <span class="n">sub_servicename</span> <span class="ow">in</span> <span class="n">parent</span><span class="o">.</span><span class="n">_sub_servicenames</span><span class="p">:</span>
|
||||
<span class="n">parent</span><span class="o">.</span><span class="n">_sub_servicenames</span><span class="o">.</span><span class="n">remove</span><span class="p">(</span><span class="n">sub_servicename</span><span class="p">)</span>
|
||||
<span class="k">del</span> <span class="bp">self</span><span class="o">.</span><span class="n">_sub_services</span><span class="p">[</span><span class="n">sub_servicename</span><span class="p">]</span>
|
||||
</div>
|
||||
<div class="viewcode-block" id="Inventory.get_sub_services"><a class="viewcode-back" href="../../../kollacli.common.html#kollacli.common.inventory.Inventory.get_sub_services">[docs]</a> <span class="k">def</span> <span class="nf">get_sub_services</span><span class="p">(</span><span class="bp">self</span><span class="p">):</span>
|
||||
<span class="k">return</span> <span class="bp">self</span><span class="o">.</span><span class="n">_sub_services</span><span class="o">.</span><span class="n">values</span><span class="p">()</span>
|
||||
</div>
|
||||
<div class="viewcode-block" id="Inventory.get_sub_service"><a class="viewcode-back" href="../../../kollacli.common.html#kollacli.common.inventory.Inventory.get_sub_service">[docs]</a> <span class="k">def</span> <span class="nf">get_sub_service</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">sub_servicename</span><span class="p">):</span>
|
||||
<span class="n">sub_service</span> <span class="o">=</span> <span class="bp">None</span>
|
||||
<span class="k">if</span> <span class="n">sub_servicename</span> <span class="ow">in</span> <span class="bp">self</span><span class="o">.</span><span class="n">_sub_services</span><span class="p">:</span>
|
||||
<span class="n">sub_service</span> <span class="o">=</span> <span class="bp">self</span><span class="o">.</span><span class="n">_sub_services</span><span class="p">[</span><span class="n">sub_servicename</span><span class="p">]</span>
|
||||
<span class="k">return</span> <span class="n">sub_service</span>
|
||||
</div>
|
||||
<div class="viewcode-block" id="Inventory.get_service_sub_services"><a class="viewcode-back" href="../../../kollacli.common.html#kollacli.common.inventory.Inventory.get_service_sub_services">[docs]</a> <span class="k">def</span> <span class="nf">get_service_sub_services</span><span class="p">(</span><span class="bp">self</span><span class="p">):</span>
|
||||
<span class="sd">"""get services and their sub_services</span>
|
||||
|
||||
<span class="sd"> return { servicename: [sub_servicenames] }</span>
|
||||
<span class="sd"> """</span>
|
||||
<span class="n">svc_sub_svcs</span> <span class="o">=</span> <span class="p">{}</span>
|
||||
<span class="k">for</span> <span class="n">service</span> <span class="ow">in</span> <span class="bp">self</span><span class="o">.</span><span class="n">get_services</span><span class="p">():</span>
|
||||
<span class="n">svc_sub_svcs</span><span class="p">[</span><span class="n">service</span><span class="o">.</span><span class="n">name</span><span class="p">]</span> <span class="o">=</span> <span class="p">[]</span>
|
||||
<span class="n">svc_sub_svcs</span><span class="p">[</span><span class="n">service</span><span class="o">.</span><span class="n">name</span><span class="p">]</span><span class="o">.</span><span class="n">extend</span><span class="p">(</span><span class="n">service</span><span class="o">.</span><span class="n">get_sub_servicenames</span><span class="p">())</span>
|
||||
<span class="k">return</span> <span class="n">svc_sub_svcs</span>
|
||||
</div>
|
||||
<div class="viewcode-block" id="Inventory.set_deploy_mode"><a class="viewcode-back" href="../../../kollacli.common.html#kollacli.common.inventory.Inventory.set_deploy_mode">[docs]</a> <span class="k">def</span> <span class="nf">set_deploy_mode</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">remote_flag</span><span class="p">):</span>
|
||||
<span class="k">if</span> <span class="ow">not</span> <span class="n">remote_flag</span> <span class="ow">and</span> <span class="nb">len</span><span class="p">(</span><span class="bp">self</span><span class="o">.</span><span class="n">_hosts</span><span class="p">)</span> <span class="o">></span> <span class="mi">1</span><span class="p">:</span>
|
||||
<span class="k">raise</span> <span class="n">InvalidConfiguration</span><span class="p">(</span>
|
||||
@ -682,22 +603,13 @@
|
||||
<span class="n">jdict</span><span class="p">[</span><span class="n">group</span><span class="o">.</span><span class="n">name</span><span class="p">][</span><span class="s1">'children'</span><span class="p">]</span> <span class="o">=</span> <span class="p">[]</span>
|
||||
<span class="n">jdict</span><span class="p">[</span><span class="n">group</span><span class="o">.</span><span class="n">name</span><span class="p">][</span><span class="s1">'vars'</span><span class="p">]</span> <span class="o">=</span> <span class="n">group</span><span class="o">.</span><span class="n">get_vars</span><span class="p">()</span>
|
||||
|
||||
<span class="c1"># add top-level services and what groups they are in</span>
|
||||
<span class="c1"># add all services, what groups they are in and their parents</span>
|
||||
<span class="k">for</span> <span class="n">service</span> <span class="ow">in</span> <span class="bp">self</span><span class="o">.</span><span class="n">get_services</span><span class="p">():</span>
|
||||
<span class="n">jdict</span><span class="p">[</span><span class="n">service</span><span class="o">.</span><span class="n">name</span><span class="p">]</span> <span class="o">=</span> <span class="p">{}</span>
|
||||
<span class="n">jdict</span><span class="p">[</span><span class="n">service</span><span class="o">.</span><span class="n">name</span><span class="p">][</span><span class="s1">'children'</span><span class="p">]</span> <span class="o">=</span> <span class="n">service</span><span class="o">.</span><span class="n">get_groupnames</span><span class="p">()</span>
|
||||
|
||||
<span class="c1"># add sub-services and their groups</span>
|
||||
<span class="k">for</span> <span class="n">sub_svc</span> <span class="ow">in</span> <span class="bp">self</span><span class="o">.</span><span class="n">get_sub_services</span><span class="p">():</span>
|
||||
<span class="n">jdict</span><span class="p">[</span><span class="n">sub_svc</span><span class="o">.</span><span class="n">name</span><span class="p">]</span> <span class="o">=</span> <span class="p">{}</span>
|
||||
<span class="n">groupnames</span> <span class="o">=</span> <span class="n">sub_svc</span><span class="o">.</span><span class="n">get_groupnames</span><span class="p">()</span>
|
||||
<span class="k">if</span> <span class="n">groupnames</span><span class="p">:</span>
|
||||
<span class="c1"># sub-service is associated with a group(s)</span>
|
||||
<span class="n">jdict</span><span class="p">[</span><span class="n">sub_svc</span><span class="o">.</span><span class="n">name</span><span class="p">][</span><span class="s1">'children'</span><span class="p">]</span> <span class="o">=</span> <span class="n">groupnames</span>
|
||||
<span class="k">else</span><span class="p">:</span>
|
||||
<span class="c1"># sub-service is associated with parent service</span>
|
||||
<span class="n">jdict</span><span class="p">[</span><span class="n">sub_svc</span><span class="o">.</span><span class="n">name</span><span class="p">][</span><span class="s1">'children'</span><span class="p">]</span> <span class="o">=</span> \
|
||||
<span class="p">[</span><span class="n">sub_svc</span><span class="o">.</span><span class="n">get_parent_servicename</span><span class="p">()]</span>
|
||||
<span class="n">groups_and_parents</span> <span class="o">=</span> <span class="p">[]</span>
|
||||
<span class="n">groups_and_parents</span><span class="o">.</span><span class="n">extend</span><span class="p">(</span><span class="n">service</span><span class="o">.</span><span class="n">get_groupnames</span><span class="p">())</span>
|
||||
<span class="n">groups_and_parents</span><span class="o">.</span><span class="n">extend</span><span class="p">(</span><span class="n">service</span><span class="o">.</span><span class="n">get_parentnames</span><span class="p">())</span>
|
||||
<span class="n">jdict</span><span class="p">[</span><span class="n">service</span><span class="o">.</span><span class="n">name</span><span class="p">][</span><span class="s1">'children'</span><span class="p">]</span> <span class="o">=</span> <span class="n">groups_and_parents</span>
|
||||
|
||||
<span class="c1"># temporarily create group containing all hosts. this is needed for</span>
|
||||
<span class="c1"># ansible commands that are performed on hosts not yet in groups.</span>
|
||||
@ -779,25 +691,38 @@
|
||||
<span class="k">if</span> <span class="n">invalid_groups</span><span class="p">:</span>
|
||||
<span class="k">raise</span> <span class="n">NotInInventory</span><span class="p">(</span><span class="n">u</span><span class="o">.</span><span class="n">_</span><span class="p">(</span><span class="s1">'Group'</span><span class="p">),</span> <span class="n">invalid_groups</span><span class="p">)</span>
|
||||
</div>
|
||||
<div class="viewcode-block" id="Inventory.validate_servicenames"><a class="viewcode-back" href="../../../kollacli.common.html#kollacli.common.inventory.Inventory.validate_servicenames">[docs]</a> <span class="k">def</span> <span class="nf">validate_servicenames</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">servicenames</span><span class="p">):</span>
|
||||
<div class="viewcode-block" id="Inventory.validate_servicenames"><a class="viewcode-back" href="../../../kollacli.common.html#kollacli.common.inventory.Inventory.validate_servicenames">[docs]</a> <span class="k">def</span> <span class="nf">validate_servicenames</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">servicenames</span><span class="p">,</span> <span class="n">client_filter</span><span class="o">=</span><span class="bp">False</span><span class="p">):</span>
|
||||
<span class="k">if</span> <span class="ow">not</span> <span class="n">servicenames</span><span class="p">:</span>
|
||||
<span class="k">raise</span> <span class="n">MissingArgument</span><span class="p">(</span><span class="n">u</span><span class="o">.</span><span class="n">_</span><span class="p">(</span><span class="s1">'Service name(s)'</span><span class="p">))</span>
|
||||
<span class="n">invalid_services</span> <span class="o">=</span> <span class="p">[]</span>
|
||||
<span class="k">for</span> <span class="n">servicename</span> <span class="ow">in</span> <span class="n">servicenames</span><span class="p">:</span>
|
||||
<span class="k">if</span> <span class="p">(</span><span class="n">servicename</span> <span class="ow">not</span> <span class="ow">in</span> <span class="bp">self</span><span class="o">.</span><span class="n">_services</span> <span class="ow">and</span>
|
||||
<span class="n">servicename</span> <span class="ow">not</span> <span class="ow">in</span> <span class="bp">self</span><span class="o">.</span><span class="n">_sub_services</span><span class="p">):</span>
|
||||
<span class="n">invalid_services</span><span class="o">.</span><span class="n">append</span><span class="p">(</span><span class="n">servicename</span><span class="p">)</span>
|
||||
<span class="k">if</span> <span class="n">client_filter</span><span class="p">:</span>
|
||||
<span class="n">services</span> <span class="o">=</span> <span class="bp">self</span><span class="o">.</span><span class="n">_client_filtered_service_dict</span><span class="p">()</span>
|
||||
<span class="k">else</span><span class="p">:</span>
|
||||
<span class="n">services</span> <span class="o">=</span> <span class="bp">self</span><span class="o">.</span><span class="n">_services</span>
|
||||
|
||||
<span class="k">for</span> <span class="n">service_name</span> <span class="ow">in</span> <span class="n">servicenames</span><span class="p">:</span>
|
||||
<span class="k">if</span> <span class="n">service_name</span> <span class="ow">not</span> <span class="ow">in</span> <span class="n">services</span><span class="p">:</span>
|
||||
<span class="n">invalid_services</span><span class="o">.</span><span class="n">append</span><span class="p">(</span><span class="n">service_name</span><span class="p">)</span>
|
||||
<span class="k">if</span> <span class="n">invalid_services</span><span class="p">:</span>
|
||||
<span class="k">raise</span> <span class="n">NotInInventory</span><span class="p">(</span><span class="n">u</span><span class="o">.</span><span class="n">_</span><span class="p">(</span><span class="s1">'Service'</span><span class="p">),</span> <span class="n">invalid_services</span><span class="p">)</span>
|
||||
</div>
|
||||
<span class="k">def</span> <span class="nf">_client_filtered_service_dict</span><span class="p">(</span><span class="bp">self</span><span class="p">):</span>
|
||||
<span class="sd">"""Filters out any unsupported services</span>
|
||||
|
||||
<span class="sd"> :return: filtered dictionary</span>
|
||||
<span class="sd"> """</span>
|
||||
<span class="n">filtered_service_dict</span> <span class="o">=</span> <span class="p">{}</span>
|
||||
<span class="k">for</span> <span class="n">service</span> <span class="ow">in</span> <span class="bp">self</span><span class="o">.</span><span class="n">_services</span><span class="o">.</span><span class="n">values</span><span class="p">():</span>
|
||||
<span class="k">if</span> <span class="n">service</span><span class="o">.</span><span class="n">is_supported</span><span class="p">():</span>
|
||||
<span class="n">filtered_service_dict</span><span class="p">[</span><span class="n">service</span><span class="o">.</span><span class="n">name</span><span class="p">]</span> <span class="o">=</span> <span class="n">service</span>
|
||||
<span class="k">return</span> <span class="n">filtered_service_dict</span>
|
||||
|
||||
<span class="k">def</span> <span class="nf">_create_default_inventory</span><span class="p">(</span><span class="bp">self</span><span class="p">):</span>
|
||||
<span class="n">allin1</span> <span class="o">=</span> <span class="n">AllInOne</span><span class="p">()</span>
|
||||
<span class="k">for</span> <span class="n">groupname</span> <span class="ow">in</span> <span class="n">allin1</span><span class="o">.</span><span class="n">groups</span><span class="p">:</span>
|
||||
<span class="bp">self</span><span class="o">.</span><span class="n">add_group</span><span class="p">(</span><span class="n">groupname</span><span class="p">)</span>
|
||||
<span class="k">for</span> <span class="n">servicename</span><span class="p">,</span> <span class="n">service</span> <span class="ow">in</span> <span class="n">allin1</span><span class="o">.</span><span class="n">services</span><span class="o">.</span><span class="n">items</span><span class="p">():</span>
|
||||
<span class="bp">self</span><span class="o">.</span><span class="n">_services</span><span class="p">[</span><span class="n">servicename</span><span class="p">]</span> <span class="o">=</span> <span class="n">service</span>
|
||||
<span class="k">for</span> <span class="n">sub_servicename</span><span class="p">,</span> <span class="n">sub_service</span> <span class="ow">in</span> <span class="n">allin1</span><span class="o">.</span><span class="n">sub_services</span><span class="o">.</span><span class="n">items</span><span class="p">():</span>
|
||||
<span class="bp">self</span><span class="o">.</span><span class="n">_sub_services</span><span class="p">[</span><span class="n">sub_servicename</span><span class="p">]</span> <span class="o">=</span> <span class="n">sub_service</span></div>
|
||||
<span class="bp">self</span><span class="o">.</span><span class="n">_services</span><span class="p">[</span><span class="n">servicename</span><span class="p">]</span> <span class="o">=</span> <span class="n">service</span></div>
|
||||
</pre></div>
|
||||
|
||||
</div>
|
||||
@ -831,7 +756,7 @@
|
||||
<li class="right" >
|
||||
<a href="../../../py-modindex.html" title="Python Module Index"
|
||||
>modules</a> |</li>
|
||||
<li><a href="../../../index.html">kollacli 4.0.0.dev483 documentation</a> »</li>
|
||||
<li><a href="../../../index.html">kollacli 4.0.1.dev498 documentation</a> »</li>
|
||||
<li><a href="../../index.html" >Module code</a> »</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
@ -6,7 +6,7 @@
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
|
||||
<title>kollacli.common.passwords — kollacli 4.0.0.dev483 documentation</title>
|
||||
<title>kollacli.common.passwords — kollacli 4.0.1.dev498 documentation</title>
|
||||
|
||||
<link rel="stylesheet" href="../../../_static/default.css" type="text/css" />
|
||||
<link rel="stylesheet" href="../../../_static/pygments.css" type="text/css" />
|
||||
@ -14,7 +14,7 @@
|
||||
<script type="text/javascript">
|
||||
var DOCUMENTATION_OPTIONS = {
|
||||
URL_ROOT: '../../../',
|
||||
VERSION: '4.0.0.dev483',
|
||||
VERSION: '4.0.1.dev498',
|
||||
COLLAPSE_INDEX: false,
|
||||
FILE_SUFFIX: '.html',
|
||||
HAS_SOURCE: true
|
||||
@ -23,7 +23,7 @@
|
||||
<script type="text/javascript" src="../../../_static/jquery.js"></script>
|
||||
<script type="text/javascript" src="../../../_static/underscore.js"></script>
|
||||
<script type="text/javascript" src="../../../_static/doctools.js"></script>
|
||||
<link rel="top" title="kollacli 4.0.0.dev483 documentation" href="../../../index.html" />
|
||||
<link rel="top" title="kollacli 4.0.1.dev498 documentation" href="../../../index.html" />
|
||||
<link rel="up" title="Module code" href="../../index.html" />
|
||||
</head>
|
||||
<body>
|
||||
@ -36,7 +36,7 @@
|
||||
<li class="right" >
|
||||
<a href="../../../py-modindex.html" title="Python Module Index"
|
||||
>modules</a> |</li>
|
||||
<li><a href="../../../index.html">kollacli 4.0.0.dev483 documentation</a> »</li>
|
||||
<li><a href="../../../index.html">kollacli 4.0.1.dev498 documentation</a> »</li>
|
||||
<li><a href="../../index.html" accesskey="U">Module code</a> »</li>
|
||||
</ul>
|
||||
</div>
|
||||
@ -187,7 +187,7 @@
|
||||
<li class="right" >
|
||||
<a href="../../../py-modindex.html" title="Python Module Index"
|
||||
>modules</a> |</li>
|
||||
<li><a href="../../../index.html">kollacli 4.0.0.dev483 documentation</a> »</li>
|
||||
<li><a href="../../../index.html">kollacli 4.0.1.dev498 documentation</a> »</li>
|
||||
<li><a href="../../index.html" >Module code</a> »</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
@ -6,7 +6,7 @@
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
|
||||
<title>kollacli.common.properties — kollacli 4.0.0.dev483 documentation</title>
|
||||
<title>kollacli.common.properties — kollacli 4.0.1.dev498 documentation</title>
|
||||
|
||||
<link rel="stylesheet" href="../../../_static/default.css" type="text/css" />
|
||||
<link rel="stylesheet" href="../../../_static/pygments.css" type="text/css" />
|
||||
@ -14,7 +14,7 @@
|
||||
<script type="text/javascript">
|
||||
var DOCUMENTATION_OPTIONS = {
|
||||
URL_ROOT: '../../../',
|
||||
VERSION: '4.0.0.dev483',
|
||||
VERSION: '4.0.1.dev498',
|
||||
COLLAPSE_INDEX: false,
|
||||
FILE_SUFFIX: '.html',
|
||||
HAS_SOURCE: true
|
||||
@ -23,7 +23,7 @@
|
||||
<script type="text/javascript" src="../../../_static/jquery.js"></script>
|
||||
<script type="text/javascript" src="../../../_static/underscore.js"></script>
|
||||
<script type="text/javascript" src="../../../_static/doctools.js"></script>
|
||||
<link rel="top" title="kollacli 4.0.0.dev483 documentation" href="../../../index.html" />
|
||||
<link rel="top" title="kollacli 4.0.1.dev498 documentation" href="../../../index.html" />
|
||||
<link rel="up" title="Module code" href="../../index.html" />
|
||||
</head>
|
||||
<body>
|
||||
@ -36,7 +36,7 @@
|
||||
<li class="right" >
|
||||
<a href="../../../py-modindex.html" title="Python Module Index"
|
||||
>modules</a> |</li>
|
||||
<li><a href="../../../index.html">kollacli 4.0.0.dev483 documentation</a> »</li>
|
||||
<li><a href="../../../index.html">kollacli 4.0.1.dev498 documentation</a> »</li>
|
||||
<li><a href="../../index.html" accesskey="U">Module code</a> »</li>
|
||||
</ul>
|
||||
</div>
|
||||
@ -63,7 +63,6 @@
|
||||
<span class="kn">import</span> <span class="nn">copy</span>
|
||||
<span class="kn">import</span> <span class="nn">logging</span>
|
||||
<span class="kn">import</span> <span class="nn">os</span>
|
||||
<span class="kn">import</span> <span class="nn">six</span>
|
||||
<span class="kn">import</span> <span class="nn">yaml</span>
|
||||
|
||||
<span class="kn">import</span> <span class="nn">kollacli.i18n</span> <span class="kn">as</span> <span class="nn">u</span>
|
||||
@ -269,7 +268,7 @@
|
||||
<span class="n">prop_list</span> <span class="o">+=</span> <span class="bp">self</span><span class="o">.</span><span class="n">group_props</span><span class="p">[</span><span class="n">group</span><span class="o">.</span><span class="n">name</span><span class="p">]</span>
|
||||
<span class="k">return</span> <span class="n">prop_list</span>
|
||||
</div>
|
||||
<div class="viewcode-block" id="AnsibleProperties.get_property"><a class="viewcode-back" href="../../../kollacli.common.html#kollacli.common.properties.AnsibleProperties.get_property">[docs]</a> <span class="k">def</span> <span class="nf">get_property</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">property_name</span><span class="p">):</span>
|
||||
<div class="viewcode-block" id="AnsibleProperties.get_property_value"><a class="viewcode-back" href="../../../kollacli.common.html#kollacli.common.properties.AnsibleProperties.get_property_value">[docs]</a> <span class="k">def</span> <span class="nf">get_property_value</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">property_name</span><span class="p">):</span>
|
||||
<span class="bp">self</span><span class="o">.</span><span class="n">_load_properties</span><span class="p">()</span>
|
||||
<span class="n">prop_val</span> <span class="o">=</span> <span class="bp">None</span>
|
||||
<span class="k">if</span> <span class="n">property_name</span> <span class="ow">in</span> <span class="bp">self</span><span class="o">.</span><span class="n">unique_global_props</span><span class="p">:</span>
|
||||
@ -277,6 +276,10 @@
|
||||
<span class="n">prop_val</span> <span class="o">=</span> <span class="n">prop</span><span class="o">.</span><span class="n">value</span>
|
||||
<span class="k">return</span> <span class="n">prop_val</span>
|
||||
</div>
|
||||
<div class="viewcode-block" id="AnsibleProperties.get_property"><a class="viewcode-back" href="../../../kollacli.common.html#kollacli.common.properties.AnsibleProperties.get_property">[docs]</a> <span class="k">def</span> <span class="nf">get_property</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">property_name</span><span class="p">):</span>
|
||||
<span class="bp">self</span><span class="o">.</span><span class="n">_load_properties</span><span class="p">()</span>
|
||||
<span class="k">return</span> <span class="bp">self</span><span class="o">.</span><span class="n">unique_global_props</span><span class="o">.</span><span class="n">get</span><span class="p">(</span><span class="n">property_name</span><span class="p">)</span>
|
||||
</div>
|
||||
<div class="viewcode-block" id="AnsibleProperties.get_all_unique"><a class="viewcode-back" href="../../../kollacli.common.html#kollacli.common.properties.AnsibleProperties.get_all_unique">[docs]</a> <span class="k">def</span> <span class="nf">get_all_unique</span><span class="p">(</span><span class="bp">self</span><span class="p">):</span>
|
||||
<span class="bp">self</span><span class="o">.</span><span class="n">_load_properties</span><span class="p">()</span>
|
||||
<span class="n">unique_list</span> <span class="o">=</span> <span class="p">[]</span>
|
||||
@ -287,21 +290,6 @@
|
||||
<div class="viewcode-block" id="AnsibleProperties.get_all_override_flags"><a class="viewcode-back" href="../../../kollacli.common.html#kollacli.common.properties.AnsibleProperties.get_all_override_flags">[docs]</a> <span class="k">def</span> <span class="nf">get_all_override_flags</span><span class="p">(</span><span class="bp">self</span><span class="p">):</span>
|
||||
<span class="bp">self</span><span class="o">.</span><span class="n">_load_properties</span><span class="p">()</span>
|
||||
<span class="k">return</span> <span class="bp">self</span><span class="o">.</span><span class="n">unique_override_flags</span>
|
||||
|
||||
<span class="c1"># TODO(bmace) -- if this isn't used for 2.1.x it should be removed</span>
|
||||
<span class="c1"># property listing is still being tweaked so leaving for</span>
|
||||
<span class="c1"># the time being in case we want to use it</span></div>
|
||||
<div class="viewcode-block" id="AnsibleProperties.filter_jinja2"><a class="viewcode-back" href="../../../kollacli.common.html#kollacli.common.properties.AnsibleProperties.filter_jinja2">[docs]</a> <span class="k">def</span> <span class="nf">filter_jinja2</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">contents</span><span class="p">):</span>
|
||||
<span class="n">new_contents</span> <span class="o">=</span> <span class="p">{}</span>
|
||||
<span class="k">for</span> <span class="n">key</span><span class="p">,</span> <span class="n">value</span> <span class="ow">in</span> <span class="n">contents</span><span class="o">.</span><span class="n">items</span><span class="p">():</span>
|
||||
<span class="k">if</span> <span class="ow">not</span> <span class="nb">isinstance</span><span class="p">(</span><span class="n">value</span><span class="p">,</span> <span class="n">six</span><span class="o">.</span><span class="n">string_types</span><span class="p">):</span>
|
||||
<span class="n">LOG</span><span class="o">.</span><span class="n">debug</span><span class="p">(</span><span class="s1">'removing non-string: </span><span class="si">%s</span><span class="s1">'</span><span class="p">,</span> <span class="n">value</span><span class="p">)</span>
|
||||
<span class="k">continue</span>
|
||||
<span class="k">if</span> <span class="n">value</span> <span class="ow">and</span> <span class="s1">'{{'</span> <span class="ow">in</span> <span class="n">value</span> <span class="ow">and</span> <span class="s1">'}}'</span> <span class="ow">in</span> <span class="n">value</span><span class="p">:</span>
|
||||
<span class="n">LOG</span><span class="o">.</span><span class="n">debug</span><span class="p">(</span><span class="s1">'removing jinja2 value: </span><span class="si">%s</span><span class="s1">'</span><span class="p">,</span> <span class="n">value</span><span class="p">)</span>
|
||||
<span class="k">continue</span>
|
||||
<span class="n">new_contents</span><span class="p">[</span><span class="n">key</span><span class="p">]</span> <span class="o">=</span> <span class="n">value</span>
|
||||
<span class="k">return</span> <span class="n">new_contents</span>
|
||||
</div>
|
||||
<div class="viewcode-block" id="AnsibleProperties.set_property"><a class="viewcode-back" href="../../../kollacli.common.html#kollacli.common.properties.AnsibleProperties.set_property">[docs]</a> <span class="k">def</span> <span class="nf">set_property</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">property_dict</span><span class="p">):</span>
|
||||
<span class="n">change_property</span><span class="p">(</span><span class="bp">self</span><span class="o">.</span><span class="n">globals_path</span><span class="p">,</span> <span class="n">property_dict</span><span class="p">,</span>
|
||||
@ -414,6 +402,7 @@
|
||||
<span class="bp">self</span><span class="o">.</span><span class="n">overrides</span> <span class="o">=</span> <span class="n">overrides</span>
|
||||
<span class="bp">self</span><span class="o">.</span><span class="n">orig_value</span> <span class="o">=</span> <span class="n">orig_value</span>
|
||||
<span class="bp">self</span><span class="o">.</span><span class="n">target</span> <span class="o">=</span> <span class="n">target</span>
|
||||
<span class="bp">self</span><span class="o">.</span><span class="n">value_type</span> <span class="o">=</span> <span class="nb">type</span><span class="p">(</span><span class="n">value</span><span class="p">)</span>
|
||||
|
||||
</div>
|
||||
<div class="viewcode-block" id="OverrideFlags"><a class="viewcode-back" href="../../../kollacli.common.html#kollacli.common.properties.OverrideFlags">[docs]</a><span class="k">class</span> <span class="nc">OverrideFlags</span><span class="p">(</span><span class="nb">object</span><span class="p">):</span>
|
||||
@ -455,7 +444,7 @@
|
||||
<li class="right" >
|
||||
<a href="../../../py-modindex.html" title="Python Module Index"
|
||||
>modules</a> |</li>
|
||||
<li><a href="../../../index.html">kollacli 4.0.0.dev483 documentation</a> »</li>
|
||||
<li><a href="../../../index.html">kollacli 4.0.1.dev498 documentation</a> »</li>
|
||||
<li><a href="../../index.html" >Module code</a> »</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
@ -6,7 +6,7 @@
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
|
||||
<title>kollacli.common.sshutils — kollacli 4.0.0.dev483 documentation</title>
|
||||
<title>kollacli.common.sshutils — kollacli 4.0.1.dev498 documentation</title>
|
||||
|
||||
<link rel="stylesheet" href="../../../_static/default.css" type="text/css" />
|
||||
<link rel="stylesheet" href="../../../_static/pygments.css" type="text/css" />
|
||||
@ -14,7 +14,7 @@
|
||||
<script type="text/javascript">
|
||||
var DOCUMENTATION_OPTIONS = {
|
||||
URL_ROOT: '../../../',
|
||||
VERSION: '4.0.0.dev483',
|
||||
VERSION: '4.0.1.dev498',
|
||||
COLLAPSE_INDEX: false,
|
||||
FILE_SUFFIX: '.html',
|
||||
HAS_SOURCE: true
|
||||
@ -23,7 +23,7 @@
|
||||
<script type="text/javascript" src="../../../_static/jquery.js"></script>
|
||||
<script type="text/javascript" src="../../../_static/underscore.js"></script>
|
||||
<script type="text/javascript" src="../../../_static/doctools.js"></script>
|
||||
<link rel="top" title="kollacli 4.0.0.dev483 documentation" href="../../../index.html" />
|
||||
<link rel="top" title="kollacli 4.0.1.dev498 documentation" href="../../../index.html" />
|
||||
<link rel="up" title="Module code" href="../../index.html" />
|
||||
</head>
|
||||
<body>
|
||||
@ -36,7 +36,7 @@
|
||||
<li class="right" >
|
||||
<a href="../../../py-modindex.html" title="Python Module Index"
|
||||
>modules</a> |</li>
|
||||
<li><a href="../../../index.html">kollacli 4.0.0.dev483 documentation</a> »</li>
|
||||
<li><a href="../../../index.html">kollacli 4.0.1.dev498 documentation</a> »</li>
|
||||
<li><a href="../../index.html" accesskey="U">Module code</a> »</li>
|
||||
</ul>
|
||||
</div>
|
||||
@ -175,7 +175,7 @@
|
||||
<li class="right" >
|
||||
<a href="../../../py-modindex.html" title="Python Module Index"
|
||||
>modules</a> |</li>
|
||||
<li><a href="../../../index.html">kollacli 4.0.0.dev483 documentation</a> »</li>
|
||||
<li><a href="../../../index.html">kollacli 4.0.1.dev498 documentation</a> »</li>
|
||||
<li><a href="../../index.html" >Module code</a> »</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
@ -6,7 +6,7 @@
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
|
||||
<title>kollacli.common.support — kollacli 4.0.0.dev483 documentation</title>
|
||||
<title>kollacli.common.support — kollacli 4.0.1.dev498 documentation</title>
|
||||
|
||||
<link rel="stylesheet" href="../../../_static/default.css" type="text/css" />
|
||||
<link rel="stylesheet" href="../../../_static/pygments.css" type="text/css" />
|
||||
@ -14,7 +14,7 @@
|
||||
<script type="text/javascript">
|
||||
var DOCUMENTATION_OPTIONS = {
|
||||
URL_ROOT: '../../../',
|
||||
VERSION: '4.0.0.dev483',
|
||||
VERSION: '4.0.1.dev498',
|
||||
COLLAPSE_INDEX: false,
|
||||
FILE_SUFFIX: '.html',
|
||||
HAS_SOURCE: true
|
||||
@ -23,7 +23,7 @@
|
||||
<script type="text/javascript" src="../../../_static/jquery.js"></script>
|
||||
<script type="text/javascript" src="../../../_static/underscore.js"></script>
|
||||
<script type="text/javascript" src="../../../_static/doctools.js"></script>
|
||||
<link rel="top" title="kollacli 4.0.0.dev483 documentation" href="../../../index.html" />
|
||||
<link rel="top" title="kollacli 4.0.1.dev498 documentation" href="../../../index.html" />
|
||||
<link rel="up" title="Module code" href="../../index.html" />
|
||||
</head>
|
||||
<body>
|
||||
@ -36,7 +36,7 @@
|
||||
<li class="right" >
|
||||
<a href="../../../py-modindex.html" title="Python Module Index"
|
||||
>modules</a> |</li>
|
||||
<li><a href="../../../index.html">kollacli 4.0.0.dev483 documentation</a> »</li>
|
||||
<li><a href="../../../index.html">kollacli 4.0.1.dev498 documentation</a> »</li>
|
||||
<li><a href="../../index.html" accesskey="U">Module code</a> »</li>
|
||||
</ul>
|
||||
</div>
|
||||
@ -111,9 +111,9 @@
|
||||
|
||||
<span class="n">ansible_properties</span> <span class="o">=</span> <span class="n">AnsibleProperties</span><span class="p">()</span>
|
||||
<span class="n">base_distro</span> <span class="o">=</span> \
|
||||
<span class="n">ansible_properties</span><span class="o">.</span><span class="n">get_property</span><span class="p">(</span><span class="s1">'kolla_base_distro'</span><span class="p">)</span>
|
||||
<span class="n">ansible_properties</span><span class="o">.</span><span class="n">get_property_value</span><span class="p">(</span><span class="s1">'kolla_base_distro'</span><span class="p">)</span>
|
||||
<span class="n">install_type</span> <span class="o">=</span> \
|
||||
<span class="n">ansible_properties</span><span class="o">.</span><span class="n">get_property</span><span class="p">(</span><span class="s1">'kolla_install_type'</span><span class="p">)</span>
|
||||
<span class="n">ansible_properties</span><span class="o">.</span><span class="n">get_property_value</span><span class="p">(</span><span class="s1">'kolla_install_type'</span><span class="p">)</span>
|
||||
<span class="c1"># typically this prefix will be "ol-openstack-"</span>
|
||||
<span class="n">container_prefix</span> <span class="o">=</span> <span class="n">base_distro</span> <span class="o">+</span> <span class="s1">'-'</span> <span class="o">+</span> <span class="n">install_type</span> <span class="o">+</span> <span class="s1">'-'</span>
|
||||
|
||||
@ -194,7 +194,7 @@
|
||||
<div class="viewcode-block" id="get_logs"><a class="viewcode-back" href="../../../kollacli.common.html#kollacli.common.support.get_logs">[docs]</a><span class="k">def</span> <span class="nf">get_logs</span><span class="p">(</span><span class="n">servicenames</span><span class="p">,</span> <span class="n">hostname</span><span class="p">,</span> <span class="n">dirname</span><span class="p">):</span>
|
||||
<span class="n">inventory</span> <span class="o">=</span> <span class="n">Inventory</span><span class="o">.</span><span class="n">load</span><span class="p">()</span>
|
||||
<span class="n">inventory</span><span class="o">.</span><span class="n">validate_hostnames</span><span class="p">([</span><span class="n">hostname</span><span class="p">])</span>
|
||||
<span class="n">inventory</span><span class="o">.</span><span class="n">validate_servicenames</span><span class="p">(</span><span class="n">servicenames</span><span class="p">)</span>
|
||||
<span class="n">inventory</span><span class="o">.</span><span class="n">validate_servicenames</span><span class="p">(</span><span class="n">servicenames</span><span class="p">,</span> <span class="n">client_filter</span><span class="o">=</span><span class="bp">True</span><span class="p">)</span>
|
||||
|
||||
<span class="n">logs</span> <span class="o">=</span> <span class="n">HostLogs</span><span class="p">(</span><span class="n">hostname</span><span class="p">,</span> <span class="n">inventory</span><span class="p">,</span> <span class="n">servicenames</span><span class="p">)</span>
|
||||
<span class="n">logs</span><span class="o">.</span><span class="n">load_container_info</span><span class="p">()</span>
|
||||
@ -264,7 +264,7 @@
|
||||
<span class="n">tmp_file</span><span class="o">.</span><span class="n">write</span><span class="p">(</span><span class="s1">'</span><span class="se">\n\n</span><span class="s1">$ </span><span class="si">%s</span><span class="se">\n</span><span class="s1">'</span> <span class="o">%</span> <span class="n">cmd</span><span class="p">)</span>
|
||||
<span class="k">if</span> <span class="n">err_msg</span><span class="p">:</span>
|
||||
<span class="n">tmp_file</span><span class="o">.</span><span class="n">write</span><span class="p">(</span><span class="s1">'Error message: </span><span class="si">%s</span><span class="se">\n</span><span class="s1">'</span> <span class="o">%</span> <span class="n">err_msg</span><span class="p">)</span>
|
||||
<span class="k">for</span> <span class="n">line</span> <span class="ow">in</span> <span class="n">output</span><span class="p">:</span>
|
||||
<span class="k">for</span> <span class="n">line</span> <span class="ow">in</span> <span class="n">output</span><span class="o">.</span><span class="n">split</span><span class="p">(</span><span class="s1">'</span><span class="se">\n</span><span class="s1">'</span><span class="p">):</span>
|
||||
<span class="n">tmp_file</span><span class="o">.</span><span class="n">write</span><span class="p">(</span><span class="n">line</span> <span class="o">+</span> <span class="s1">'</span><span class="se">\n</span><span class="s1">'</span><span class="p">)</span>
|
||||
|
||||
<span class="n">tar</span><span class="o">.</span><span class="n">add</span><span class="p">(</span><span class="n">path</span><span class="p">,</span> <span class="n">arcname</span><span class="o">=</span><span class="n">os</span><span class="o">.</span><span class="n">path</span><span class="o">.</span><span class="n">join</span><span class="p">(</span><span class="s1">'kolla'</span><span class="p">,</span> <span class="s1">'cmds_output'</span><span class="p">))</span>
|
||||
@ -308,7 +308,7 @@
|
||||
<li class="right" >
|
||||
<a href="../../../py-modindex.html" title="Python Module Index"
|
||||
>modules</a> |</li>
|
||||
<li><a href="../../../index.html">kollacli 4.0.0.dev483 documentation</a> »</li>
|
||||
<li><a href="../../../index.html">kollacli 4.0.1.dev498 documentation</a> »</li>
|
||||
<li><a href="../../index.html" >Module code</a> »</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
@ -6,7 +6,7 @@
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
|
||||
<title>kollacli.common.utils — kollacli 4.0.0.dev483 documentation</title>
|
||||
<title>kollacli.common.utils — kollacli 4.0.1.dev498 documentation</title>
|
||||
|
||||
<link rel="stylesheet" href="../../../_static/default.css" type="text/css" />
|
||||
<link rel="stylesheet" href="../../../_static/pygments.css" type="text/css" />
|
||||
@ -14,7 +14,7 @@
|
||||
<script type="text/javascript">
|
||||
var DOCUMENTATION_OPTIONS = {
|
||||
URL_ROOT: '../../../',
|
||||
VERSION: '4.0.0.dev483',
|
||||
VERSION: '4.0.1.dev498',
|
||||
COLLAPSE_INDEX: false,
|
||||
FILE_SUFFIX: '.html',
|
||||
HAS_SOURCE: true
|
||||
@ -23,7 +23,7 @@
|
||||
<script type="text/javascript" src="../../../_static/jquery.js"></script>
|
||||
<script type="text/javascript" src="../../../_static/underscore.js"></script>
|
||||
<script type="text/javascript" src="../../../_static/doctools.js"></script>
|
||||
<link rel="top" title="kollacli 4.0.0.dev483 documentation" href="../../../index.html" />
|
||||
<link rel="top" title="kollacli 4.0.1.dev498 documentation" href="../../../index.html" />
|
||||
<link rel="up" title="Module code" href="../../index.html" />
|
||||
</head>
|
||||
<body>
|
||||
@ -36,7 +36,7 @@
|
||||
<li class="right" >
|
||||
<a href="../../../py-modindex.html" title="Python Module Index"
|
||||
>modules</a> |</li>
|
||||
<li><a href="../../../index.html">kollacli 4.0.0.dev483 documentation</a> »</li>
|
||||
<li><a href="../../../index.html">kollacli 4.0.1.dev498 documentation</a> »</li>
|
||||
<li><a href="../../index.html" accesskey="U">Module code</a> »</li>
|
||||
</ul>
|
||||
</div>
|
||||
@ -47,7 +47,7 @@
|
||||
<div class="body">
|
||||
|
||||
<h1>Source code for kollacli.common.utils</h1><div class="highlight"><pre>
|
||||
<span></span><span class="c1"># Copyright(c) 2016, Oracle and/or its affiliates. All Rights Reserved.</span>
|
||||
<span></span><span class="c1"># Copyright(c) 2017, Oracle and/or its affiliates. All Rights Reserved.</span>
|
||||
<span class="c1">#</span>
|
||||
<span class="c1"># Licensed under the Apache License, Version 2.0 (the "License"); you may</span>
|
||||
<span class="c1"># not use this file except in compliance with the License. You may obtain</span>
|
||||
@ -335,7 +335,13 @@
|
||||
<span class="c1"># clear existing property</span>
|
||||
<span class="k">continue</span>
|
||||
<span class="c1"># edit existing property</span>
|
||||
<span class="n">line</span> <span class="o">=</span> <span class="s1">'</span><span class="si">%s</span><span class="s1">: "</span><span class="si">%s</span><span class="s1">"'</span> <span class="o">%</span> <span class="p">(</span><span class="n">split_key</span><span class="p">,</span> <span class="n">cloned_dict</span><span class="p">[</span><span class="n">split_key</span><span class="p">])</span>
|
||||
<span class="n">value</span> <span class="o">=</span> <span class="n">cloned_dict</span><span class="p">[</span><span class="n">split_key</span><span class="p">]</span>
|
||||
<span class="k">if</span> <span class="nb">type</span><span class="p">(</span><span class="n">value</span><span class="p">)</span> <span class="ow">is</span> <span class="ow">not</span> <span class="nb">str</span><span class="p">:</span>
|
||||
<span class="n">value</span> <span class="o">=</span> <span class="n">yaml</span><span class="o">.</span><span class="n">safe_dump</span><span class="p">(</span><span class="n">value</span><span class="p">)</span><span class="o">.</span><span class="n">strip</span><span class="p">()</span>
|
||||
<span class="n">line</span> <span class="o">=</span> <span class="s1">'</span><span class="si">%s</span><span class="s1">: </span><span class="si">%s</span><span class="s1">'</span> <span class="o">%</span> <span class="p">(</span><span class="n">split_key</span><span class="p">,</span> <span class="n">value</span><span class="p">)</span>
|
||||
<span class="k">else</span><span class="p">:</span>
|
||||
<span class="n">line</span> <span class="o">=</span> <span class="s1">'</span><span class="si">%s</span><span class="s1">: "</span><span class="si">%s</span><span class="s1">"'</span> <span class="o">%</span> <span class="p">(</span><span class="n">split_key</span><span class="p">,</span> <span class="n">value</span><span class="p">)</span>
|
||||
|
||||
<span class="c1"># clear out the key after we are done, all existing keys</span>
|
||||
<span class="c1"># will be appended at the end (or for clear, ignored)</span>
|
||||
<span class="k">del</span> <span class="n">cloned_dict</span><span class="p">[</span><span class="n">split_key</span><span class="p">]</span>
|
||||
@ -343,10 +349,22 @@
|
||||
<span class="k">if</span> <span class="ow">not</span> <span class="n">clear</span><span class="p">:</span>
|
||||
<span class="c1"># add new properties to file</span>
|
||||
<span class="k">for</span> <span class="n">key</span><span class="p">,</span> <span class="n">value</span> <span class="ow">in</span> <span class="n">cloned_dict</span><span class="o">.</span><span class="n">items</span><span class="p">():</span>
|
||||
<span class="k">if</span> <span class="nb">type</span><span class="p">(</span><span class="n">value</span><span class="p">)</span> <span class="ow">is</span> <span class="ow">not</span> <span class="nb">str</span><span class="p">:</span>
|
||||
<span class="n">value</span> <span class="o">=</span> <span class="n">yaml</span><span class="o">.</span><span class="n">safe_dump</span><span class="p">(</span><span class="n">value</span><span class="p">)</span><span class="o">.</span><span class="n">strip</span><span class="p">()</span>
|
||||
<span class="n">line</span> <span class="o">=</span> <span class="s1">'</span><span class="si">%s</span><span class="s1">: </span><span class="si">%s</span><span class="s1">'</span> <span class="o">%</span> <span class="p">(</span><span class="n">key</span><span class="p">,</span> <span class="n">value</span><span class="p">)</span>
|
||||
<span class="k">else</span><span class="p">:</span>
|
||||
<span class="n">line</span> <span class="o">=</span> <span class="s1">'</span><span class="si">%s</span><span class="s1">: "</span><span class="si">%s</span><span class="s1">"'</span> <span class="o">%</span> <span class="p">(</span><span class="n">key</span><span class="p">,</span> <span class="n">value</span><span class="p">)</span>
|
||||
|
||||
<span class="c1"># when we are doing an append we want to avoid</span>
|
||||
<span class="c1"># blank lines before the new entry</span>
|
||||
<span class="k">if</span> <span class="n">new_contents</span><span class="p">[</span><span class="o">-</span><span class="mi">1</span><span class="p">:][</span><span class="mi">0</span><span class="p">]</span> <span class="o">==</span> <span class="s1">''</span><span class="p">:</span>
|
||||
<span class="k">del</span> <span class="n">new_contents</span><span class="p">[</span><span class="o">-</span><span class="mi">1</span><span class="p">]</span>
|
||||
<span class="n">new_contents</span><span class="o">.</span><span class="n">append</span><span class="p">(</span><span class="n">line</span><span class="p">)</span>
|
||||
|
||||
<span class="n">write_data</span> <span class="o">=</span> <span class="s1">'</span><span class="se">\n</span><span class="s1">'</span><span class="o">.</span><span class="n">join</span><span class="p">(</span><span class="n">new_contents</span><span class="p">)</span>
|
||||
<span class="c1"># if the last line is blank, trim it off</span>
|
||||
<span class="k">if</span> <span class="n">new_contents</span><span class="p">[</span><span class="o">-</span><span class="mi">1</span><span class="p">:][</span><span class="mi">0</span><span class="p">]</span> <span class="o">==</span> <span class="s1">''</span><span class="p">:</span>
|
||||
<span class="k">del</span> <span class="n">new_contents</span><span class="p">[</span><span class="o">-</span><span class="mi">1</span><span class="p">]</span>
|
||||
<span class="n">write_data</span> <span class="o">=</span> <span class="s1">'</span><span class="se">\n</span><span class="s1">'</span><span class="o">.</span><span class="n">join</span><span class="p">(</span><span class="n">new_contents</span><span class="p">)</span> <span class="o">+</span> <span class="s1">'</span><span class="se">\n</span><span class="s1">'</span>
|
||||
<span class="n">sync_write_file</span><span class="p">(</span><span class="n">file_path</span><span class="p">,</span> <span class="n">write_data</span><span class="p">)</span>
|
||||
|
||||
</div>
|
||||
@ -412,7 +430,6 @@
|
||||
<span class="k">if</span> <span class="n">obj_to_decode</span> <span class="ow">is</span> <span class="bp">None</span><span class="p">:</span>
|
||||
<span class="k">return</span> <span class="bp">None</span>
|
||||
|
||||
<span class="n">new_obj</span> <span class="o">=</span> <span class="bp">None</span>
|
||||
<span class="k">if</span> <span class="nb">isinstance</span><span class="p">(</span><span class="n">obj_to_decode</span><span class="p">,</span> <span class="nb">list</span><span class="p">):</span>
|
||||
<span class="n">new_obj</span> <span class="o">=</span> <span class="p">[]</span>
|
||||
<span class="k">for</span> <span class="n">text</span> <span class="ow">in</span> <span class="n">obj_to_decode</span><span class="p">:</span>
|
||||
@ -449,10 +466,11 @@
|
||||
<span class="sd"> (\u0414\u0435\u043a\u0430\u0442). By converting</span>
|
||||
<span class="sd"> the list to string here, the proper non-ascii chars are displayed.</span>
|
||||
|
||||
<span class="sd"> This will only change the lists when the output is to a table. It cannot</span>
|
||||
<span class="sd"> be changed if the display output is json, yaml, etc.</span>
|
||||
<span class="sd"> This will only change the lists when the output is to a user visible</span>
|
||||
<span class="sd"> medium. It cannot be changed if the display output is json, yaml, etc.</span>
|
||||
<span class="sd"> """</span>
|
||||
<span class="k">if</span> <span class="n">parsed_args</span><span class="o">.</span><span class="n">formatter</span> <span class="ow">and</span> <span class="n">parsed_args</span><span class="o">.</span><span class="n">formatter</span> <span class="o">!=</span> <span class="s1">'table'</span><span class="p">:</span>
|
||||
<span class="n">convert_types</span> <span class="o">=</span> <span class="p">[</span><span class="s1">'table'</span><span class="p">,</span> <span class="s1">'csv'</span><span class="p">,</span> <span class="s1">'html'</span><span class="p">,</span> <span class="s1">'value'</span><span class="p">]</span>
|
||||
<span class="k">if</span> <span class="n">parsed_args</span><span class="o">.</span><span class="n">formatter</span> <span class="ow">and</span> <span class="n">parsed_args</span><span class="o">.</span><span class="n">formatter</span> <span class="ow">not</span> <span class="ow">in</span> <span class="n">convert_types</span><span class="p">:</span>
|
||||
<span class="c1"># not table output, leave it as-is</span>
|
||||
<span class="k">return</span> <span class="n">tuples</span>
|
||||
|
||||
@ -488,6 +506,9 @@
|
||||
<span class="c1"># empty string, dict or list</span>
|
||||
<span class="k">raise</span> <span class="n">MissingArgument</span><span class="p">(</span><span class="n">param_name</span><span class="p">)</span>
|
||||
|
||||
<span class="c1"># if expected type is None, skip the type checking</span>
|
||||
<span class="k">if</span> <span class="n">expected_type</span> <span class="ow">is</span> <span class="bp">None</span><span class="p">:</span>
|
||||
<span class="k">return</span>
|
||||
<span class="c1"># normalize expected string types for py2 and py3</span>
|
||||
<span class="k">if</span> <span class="n">expected_type</span> <span class="ow">is</span> <span class="nb">str</span><span class="p">:</span>
|
||||
<span class="n">expected_type</span> <span class="o">=</span> <span class="n">six</span><span class="o">.</span><span class="n">string_types</span>
|
||||
@ -676,7 +697,7 @@
|
||||
<li class="right" >
|
||||
<a href="../../../py-modindex.html" title="Python Module Index"
|
||||
>modules</a> |</li>
|
||||
<li><a href="../../../index.html">kollacli 4.0.0.dev483 documentation</a> »</li>
|
||||
<li><a href="../../../index.html">kollacli 4.0.1.dev498 documentation</a> »</li>
|
||||
<li><a href="../../index.html" >Module code</a> »</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
12
doc/build/html/_modules/kollacli/shell.html
vendored
12
doc/build/html/_modules/kollacli/shell.html
vendored
@ -6,7 +6,7 @@
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
|
||||
<title>kollacli.shell — kollacli 4.0.0.dev483 documentation</title>
|
||||
<title>kollacli.shell — kollacli 4.0.1.dev498 documentation</title>
|
||||
|
||||
<link rel="stylesheet" href="../../_static/default.css" type="text/css" />
|
||||
<link rel="stylesheet" href="../../_static/pygments.css" type="text/css" />
|
||||
@ -14,7 +14,7 @@
|
||||
<script type="text/javascript">
|
||||
var DOCUMENTATION_OPTIONS = {
|
||||
URL_ROOT: '../../',
|
||||
VERSION: '4.0.0.dev483',
|
||||
VERSION: '4.0.1.dev498',
|
||||
COLLAPSE_INDEX: false,
|
||||
FILE_SUFFIX: '.html',
|
||||
HAS_SOURCE: true
|
||||
@ -23,7 +23,7 @@
|
||||
<script type="text/javascript" src="../../_static/jquery.js"></script>
|
||||
<script type="text/javascript" src="../../_static/underscore.js"></script>
|
||||
<script type="text/javascript" src="../../_static/doctools.js"></script>
|
||||
<link rel="top" title="kollacli 4.0.0.dev483 documentation" href="../../index.html" />
|
||||
<link rel="top" title="kollacli 4.0.1.dev498 documentation" href="../../index.html" />
|
||||
<link rel="up" title="Module code" href="../index.html" />
|
||||
</head>
|
||||
<body>
|
||||
@ -36,7 +36,7 @@
|
||||
<li class="right" >
|
||||
<a href="../../py-modindex.html" title="Python Module Index"
|
||||
>modules</a> |</li>
|
||||
<li><a href="../../index.html">kollacli 4.0.0.dev483 documentation</a> »</li>
|
||||
<li><a href="../../index.html">kollacli 4.0.1.dev498 documentation</a> »</li>
|
||||
<li><a href="../index.html" accesskey="U">Module code</a> »</li>
|
||||
</ul>
|
||||
</div>
|
||||
@ -77,7 +77,7 @@
|
||||
|
||||
<span class="n">LOG</span> <span class="o">=</span> <span class="n">logging</span><span class="o">.</span><span class="n">getLogger</span><span class="p">(</span><span class="vm">__name__</span><span class="p">)</span>
|
||||
|
||||
<span class="n">VERSION</span> <span class="o">=</span> <span class="s1">'0.3'</span>
|
||||
<span class="n">VERSION</span> <span class="o">=</span> <span class="s1">'4.0'</span>
|
||||
|
||||
|
||||
<div class="viewcode-block" id="KollaCli"><a class="viewcode-back" href="../../kollacli.html#kollacli.shell.KollaCli">[docs]</a><span class="k">class</span> <span class="nc">KollaCli</span><span class="p">(</span><span class="n">App</span><span class="p">):</span>
|
||||
@ -146,7 +146,7 @@
|
||||
<li class="right" >
|
||||
<a href="../../py-modindex.html" title="Python Module Index"
|
||||
>modules</a> |</li>
|
||||
<li><a href="../../index.html">kollacli 4.0.0.dev483 documentation</a> »</li>
|
||||
<li><a href="../../index.html">kollacli 4.0.1.dev498 documentation</a> »</li>
|
||||
<li><a href="../index.html" >Module code</a> »</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
14
doc/build/html/_sources/kollacli.api.txt
vendored
14
doc/build/html/_sources/kollacli.api.txt
vendored
@ -4,14 +4,6 @@ kollacli.api package
|
||||
Submodules
|
||||
----------
|
||||
|
||||
kollacli.api.async module
|
||||
-------------------------
|
||||
|
||||
.. automodule:: kollacli.api.async
|
||||
:members:
|
||||
:undoc-members:
|
||||
:show-inheritance:
|
||||
|
||||
kollacli.api.client module
|
||||
--------------------------
|
||||
|
||||
@ -20,10 +12,10 @@ kollacli.api.client module
|
||||
:undoc-members:
|
||||
:show-inheritance:
|
||||
|
||||
kollacli.api.deploy module
|
||||
--------------------------
|
||||
kollacli.api.control_plane module
|
||||
---------------------------------
|
||||
|
||||
.. automodule:: kollacli.api.deploy
|
||||
.. automodule:: kollacli.api.control_plane
|
||||
:members:
|
||||
:undoc-members:
|
||||
:show-inheritance:
|
||||
|
16
doc/build/html/_sources/kollacli.commands.txt
vendored
16
doc/build/html/_sources/kollacli.commands.txt
vendored
@ -52,6 +52,22 @@ kollacli.commands.property module
|
||||
:undoc-members:
|
||||
:show-inheritance:
|
||||
|
||||
kollacli.commands.pull module
|
||||
-----------------------------
|
||||
|
||||
.. automodule:: kollacli.commands.pull
|
||||
:members:
|
||||
:undoc-members:
|
||||
:show-inheritance:
|
||||
|
||||
kollacli.commands.reconfigure module
|
||||
------------------------------------
|
||||
|
||||
.. automodule:: kollacli.commands.reconfigure
|
||||
:members:
|
||||
:undoc-members:
|
||||
:show-inheritance:
|
||||
|
||||
kollacli.commands.service module
|
||||
--------------------------------
|
||||
|
||||
|
246
doc/build/html/genindex.html
vendored
246
doc/build/html/genindex.html
vendored
@ -7,7 +7,7 @@
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
|
||||
<title>Index — kollacli 4.0.0.dev483 documentation</title>
|
||||
<title>Index — kollacli 4.0.1.dev498 documentation</title>
|
||||
|
||||
<link rel="stylesheet" href="_static/default.css" type="text/css" />
|
||||
<link rel="stylesheet" href="_static/pygments.css" type="text/css" />
|
||||
@ -15,7 +15,7 @@
|
||||
<script type="text/javascript">
|
||||
var DOCUMENTATION_OPTIONS = {
|
||||
URL_ROOT: './',
|
||||
VERSION: '4.0.0.dev483',
|
||||
VERSION: '4.0.1.dev498',
|
||||
COLLAPSE_INDEX: false,
|
||||
FILE_SUFFIX: '.html',
|
||||
HAS_SOURCE: true
|
||||
@ -24,7 +24,7 @@
|
||||
<script type="text/javascript" src="_static/jquery.js"></script>
|
||||
<script type="text/javascript" src="_static/underscore.js"></script>
|
||||
<script type="text/javascript" src="_static/doctools.js"></script>
|
||||
<link rel="top" title="kollacli 4.0.0.dev483 documentation" href="index.html" />
|
||||
<link rel="top" title="kollacli 4.0.1.dev498 documentation" href="index.html" />
|
||||
</head>
|
||||
<body>
|
||||
<div class="related">
|
||||
@ -36,7 +36,7 @@
|
||||
<li class="right" >
|
||||
<a href="py-modindex.html" title="Python Module Index"
|
||||
>modules</a> |</li>
|
||||
<li><a href="index.html">kollacli 4.0.0.dev483 documentation</a> »</li>
|
||||
<li><a href="index.html">kollacli 4.0.1.dev498 documentation</a> »</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
@ -81,6 +81,10 @@
|
||||
</dt>
|
||||
|
||||
|
||||
<dt><a href="kollacli.common.html#kollacli.common.service.Service.add_childname">add_childname() (kollacli.common.service.Service method)</a>
|
||||
</dt>
|
||||
|
||||
|
||||
<dt><a href="kollacli.common.html#kollacli.common.allinone.AllInOne.add_group">add_group() (kollacli.common.allinone.AllInOne method)</a>
|
||||
</dt>
|
||||
|
||||
@ -119,6 +123,12 @@
|
||||
|
||||
</dl></dd>
|
||||
|
||||
<dt><a href="kollacli.common.html#kollacli.common.service.Service.add_parentname">add_parentname() (kollacli.common.service.Service method)</a>
|
||||
</dt>
|
||||
|
||||
</dl></td>
|
||||
<td style="width: 33%" valign="top"><dl>
|
||||
|
||||
<dt><a href="kollacli.api.html#kollacli.api.group.Group.add_service">add_service() (kollacli.api.group.Group method)</a>
|
||||
</dt>
|
||||
|
||||
@ -129,14 +139,6 @@
|
||||
|
||||
</dl></dd>
|
||||
|
||||
<dt><a href="kollacli.common.html#kollacli.common.allinone.AllInOne.add_sub_service">add_sub_service() (kollacli.common.allinone.AllInOne method)</a>
|
||||
</dt>
|
||||
|
||||
|
||||
<dt><a href="kollacli.common.html#kollacli.common.service.Service.add_sub_servicename">add_sub_servicename() (kollacli.common.service.Service method)</a>
|
||||
</dt>
|
||||
|
||||
|
||||
<dt><a href="kollacli.common.html#kollacli.common.allinone.AllInOne">AllInOne (class in kollacli.common.allinone)</a>
|
||||
</dt>
|
||||
|
||||
@ -144,8 +146,6 @@
|
||||
<dt><a href="kollacli.common.ansible.html#kollacli.common.ansible.job.AnsibleJob">AnsibleJob (class in kollacli.common.ansible.job)</a>
|
||||
</dt>
|
||||
|
||||
</dl></td>
|
||||
<td style="width: 33%" valign="top"><dl>
|
||||
|
||||
<dt><a href="kollacli.common.ansible.html#kollacli.common.ansible.playbook.AnsiblePlaybook">AnsiblePlaybook (class in kollacli.common.ansible.playbook)</a>
|
||||
</dt>
|
||||
@ -158,34 +158,6 @@
|
||||
<dt><a href="kollacli.common.html#kollacli.common.properties.AnsibleProperty">AnsibleProperty (class in kollacli.common.properties)</a>
|
||||
</dt>
|
||||
|
||||
|
||||
<dt><a href="kollacli.api.html#kollacli.api.async.AsyncApi.async_deploy">async_deploy() (kollacli.api.async.AsyncApi method)</a>
|
||||
</dt>
|
||||
|
||||
|
||||
<dt><a href="kollacli.api.html#kollacli.api.async.AsyncApi.async_host_destroy">async_host_destroy() (kollacli.api.async.AsyncApi method)</a>
|
||||
</dt>
|
||||
|
||||
|
||||
<dt><a href="kollacli.api.html#kollacli.api.async.AsyncApi.async_host_precheck">async_host_precheck() (kollacli.api.async.AsyncApi method)</a>
|
||||
</dt>
|
||||
|
||||
|
||||
<dt><a href="kollacli.api.html#kollacli.api.async.AsyncApi.async_host_stop">async_host_stop() (kollacli.api.async.AsyncApi method)</a>
|
||||
</dt>
|
||||
|
||||
|
||||
<dt><a href="kollacli.api.html#kollacli.api.async.AsyncApi.async_reconfigure">async_reconfigure() (kollacli.api.async.AsyncApi method)</a>
|
||||
</dt>
|
||||
|
||||
|
||||
<dt><a href="kollacli.api.html#kollacli.api.async.AsyncApi.async_upgrade">async_upgrade() (kollacli.api.async.AsyncApi method)</a>
|
||||
</dt>
|
||||
|
||||
|
||||
<dt><a href="kollacli.api.html#kollacli.api.async.AsyncApi">AsyncApi (class in kollacli.api.async)</a>
|
||||
</dt>
|
||||
|
||||
</dl></td>
|
||||
</tr></table>
|
||||
|
||||
@ -193,7 +165,7 @@
|
||||
<table style="width: 100%" class="indextable genindextable"><tr>
|
||||
<td style="width: 33%" valign="top"><dl>
|
||||
|
||||
<dt><a href="kollacli.api.html#kollacli.api.client.ClientApi.base_call">base_call() (kollacli.api.client.ClientApi method)</a>
|
||||
<dt><a href="kollacli.api.html#kollacli.api.client.ClientApi.base_call">base_call() (kollacli.api.client.ClientApi static method)</a>
|
||||
</dt>
|
||||
|
||||
</dl></td>
|
||||
@ -271,6 +243,10 @@
|
||||
</dt>
|
||||
|
||||
|
||||
<dt><a href="kollacli.api.html#kollacli.api.control_plane.ControlPlaneApi">ControlPlaneApi (class in kollacli.api.control_plane)</a>
|
||||
</dt>
|
||||
|
||||
|
||||
<dt><a href="kollacli.common.html#kollacli.common.utils.convert_list_to_string">convert_list_to_string() (in module kollacli.common.utils)</a>
|
||||
</dt>
|
||||
|
||||
@ -290,10 +266,6 @@
|
||||
<dt><a href="kollacli.common.html#kollacli.common.inventory.Inventory.create_service">create_service() (kollacli.common.inventory.Inventory method)</a>
|
||||
</dt>
|
||||
|
||||
|
||||
<dt><a href="kollacli.common.html#kollacli.common.inventory.Inventory.create_sub_service">create_sub_service() (kollacli.common.inventory.Inventory method)</a>
|
||||
</dt>
|
||||
|
||||
</dl></td>
|
||||
</tr></table>
|
||||
|
||||
@ -305,10 +277,6 @@
|
||||
</dt>
|
||||
|
||||
|
||||
<dt><a href="kollacli.common.html#kollacli.common.inventory.Inventory.delete_sub_service">delete_sub_service() (kollacli.common.inventory.Inventory method)</a>
|
||||
</dt>
|
||||
|
||||
|
||||
<dt><a href="kollacli.commands.html#kollacli.commands.deploy.Deploy">Deploy (class in kollacli.commands.deploy)</a>
|
||||
</dt>
|
||||
|
||||
@ -316,6 +284,12 @@
|
||||
<dt><a href="kollacli.common.ansible.html#kollacli.common.ansible.actions.deploy">deploy() (in module kollacli.common.ansible.actions)</a>
|
||||
</dt>
|
||||
|
||||
<dd><dl>
|
||||
|
||||
<dt><a href="kollacli.api.html#kollacli.api.control_plane.ControlPlaneApi.deploy">(kollacli.api.control_plane.ControlPlaneApi static method)</a>
|
||||
</dt>
|
||||
|
||||
</dl></dd>
|
||||
|
||||
<dt><a href="kollacli.common.ansible.html#kollacli.common.ansible.playbook.AnsiblePlaybook.deploy_id">deploy_id (kollacli.common.ansible.playbook.AnsiblePlaybook attribute)</a>
|
||||
</dt>
|
||||
@ -323,14 +297,6 @@
|
||||
</dl></td>
|
||||
<td style="width: 33%" valign="top"><dl>
|
||||
|
||||
<dt><a href="kollacli.api.html#kollacli.api.deploy.DeployApi.deploy_set_mode">deploy_set_mode() (kollacli.api.deploy.DeployApi method)</a>
|
||||
</dt>
|
||||
|
||||
|
||||
<dt><a href="kollacli.api.html#kollacli.api.deploy.DeployApi">DeployApi (class in kollacli.api.deploy)</a>
|
||||
</dt>
|
||||
|
||||
|
||||
<dt><a href="kollacli.common.ansible.html#kollacli.common.ansible.actions.destroy_hosts">destroy_hosts() (in module kollacli.common.ansible.actions)</a>
|
||||
</dt>
|
||||
|
||||
@ -349,7 +315,7 @@
|
||||
<table style="width: 100%" class="indextable genindextable"><tr>
|
||||
<td style="width: 33%" valign="top"><dl>
|
||||
|
||||
<dt><a href="kollacli.api.html#kollacli.api.client.ClientApi.enable_console_logging">enable_console_logging() (kollacli.api.client.ClientApi method)</a>
|
||||
<dt><a href="kollacli.api.html#kollacli.api.client.ClientApi.enable_console_logging">enable_console_logging() (kollacli.api.client.ClientApi static method)</a>
|
||||
</dt>
|
||||
|
||||
</dl></td>
|
||||
@ -369,16 +335,12 @@
|
||||
</dt>
|
||||
|
||||
|
||||
<dt><a href="kollacli.common.html#kollacli.common.properties.AnsibleProperties.filter_jinja2">filter_jinja2() (kollacli.common.properties.AnsibleProperties method)</a>
|
||||
<dt><a href="kollacli.common.html#kollacli.common.support.HostLogs.filter_services">filter_services() (kollacli.common.support.HostLogs method)</a>
|
||||
</dt>
|
||||
|
||||
</dl></td>
|
||||
<td style="width: 33%" valign="top"><dl>
|
||||
|
||||
<dt><a href="kollacli.common.html#kollacli.common.support.HostLogs.filter_services">filter_services() (kollacli.common.support.HostLogs method)</a>
|
||||
</dt>
|
||||
|
||||
|
||||
<dt><a href="kollacli.common.ansible.html#kollacli.common.ansible.playbook.AnsiblePlaybook.flush_cache">flush_cache (kollacli.common.ansible.playbook.AnsiblePlaybook attribute)</a>
|
||||
</dt>
|
||||
|
||||
@ -429,6 +391,10 @@
|
||||
</dt>
|
||||
|
||||
|
||||
<dt><a href="kollacli.common.html#kollacli.common.service.Service.get_childnames">get_childnames() (kollacli.common.service.Service method)</a>
|
||||
</dt>
|
||||
|
||||
|
||||
<dt><a href="kollacli.api.html#kollacli.api.service.Service.get_children">get_children() (kollacli.api.service.Service method)</a>
|
||||
</dt>
|
||||
|
||||
@ -562,6 +528,8 @@
|
||||
<dt><a href="kollacli.common.html#kollacli.common.utils.get_kollacli_etc">get_kollacli_etc() (in module kollacli.common.utils)</a>
|
||||
</dt>
|
||||
|
||||
</dl></td>
|
||||
<td style="width: 33%" valign="top"><dl>
|
||||
|
||||
<dt><a href="kollacli.common.html#kollacli.common.utils.get_kollacli_home">get_kollacli_home() (in module kollacli.common.utils)</a>
|
||||
</dt>
|
||||
@ -570,8 +538,6 @@
|
||||
<dt><a href="kollacli.common.html#kollacli.common.utils.get_lock_enabled">get_lock_enabled() (in module kollacli.common.utils)</a>
|
||||
</dt>
|
||||
|
||||
</dl></td>
|
||||
<td style="width: 33%" valign="top"><dl>
|
||||
|
||||
<dt><a href="kollacli.common.html#kollacli.common.support.HostLogs.get_log">get_log() (kollacli.common.support.HostLogs method)</a>
|
||||
</dt>
|
||||
@ -599,11 +565,15 @@
|
||||
|
||||
</dl></dd>
|
||||
|
||||
<dt><a href="kollacli.api.html#kollacli.api.service.Service.get_parent">get_parent() (kollacli.api.service.Service method)</a>
|
||||
<dt><a href="kollacli.common.html#kollacli.common.subservice.SubService.get_parent_servicename">get_parent_servicename() (kollacli.common.subservice.SubService method)</a>
|
||||
</dt>
|
||||
|
||||
|
||||
<dt><a href="kollacli.common.html#kollacli.common.subservice.SubService.get_parent_servicename">get_parent_servicename() (kollacli.common.subservice.SubService method)</a>
|
||||
<dt><a href="kollacli.common.html#kollacli.common.service.Service.get_parentnames">get_parentnames() (kollacli.common.service.Service method)</a>
|
||||
</dt>
|
||||
|
||||
|
||||
<dt><a href="kollacli.api.html#kollacli.api.service.Service.get_parents">get_parents() (kollacli.api.service.Service method)</a>
|
||||
</dt>
|
||||
|
||||
|
||||
@ -692,6 +662,10 @@
|
||||
</dt>
|
||||
|
||||
|
||||
<dt><a href="kollacli.commands.html#kollacli.commands.reconfigure.Reconfigure.get_parser">(kollacli.commands.reconfigure.Reconfigure method)</a>
|
||||
</dt>
|
||||
|
||||
|
||||
<dt><a href="kollacli.commands.html#kollacli.commands.service.ServiceAddGroup.get_parser">(kollacli.commands.service.ServiceAddGroup method)</a>
|
||||
</dt>
|
||||
|
||||
@ -717,11 +691,11 @@
|
||||
</dt>
|
||||
|
||||
|
||||
<dt><a href="kollacli.common.html#kollacli.common.inventory.Inventory.get_service">get_service() (kollacli.common.inventory.Inventory method)</a>
|
||||
<dt><a href="kollacli.common.html#kollacli.common.properties.AnsibleProperties.get_property_value">get_property_value() (kollacli.common.properties.AnsibleProperties method)</a>
|
||||
</dt>
|
||||
|
||||
|
||||
<dt><a href="kollacli.common.html#kollacli.common.inventory.Inventory.get_service_sub_services">get_service_sub_services() (kollacli.common.inventory.Inventory method)</a>
|
||||
<dt><a href="kollacli.common.html#kollacli.common.inventory.Inventory.get_service">get_service() (kollacli.common.inventory.Inventory method)</a>
|
||||
</dt>
|
||||
|
||||
|
||||
@ -749,18 +723,6 @@
|
||||
|
||||
</dl></dd>
|
||||
|
||||
<dt><a href="kollacli.common.html#kollacli.common.inventory.Inventory.get_sub_service">get_sub_service() (kollacli.common.inventory.Inventory method)</a>
|
||||
</dt>
|
||||
|
||||
|
||||
<dt><a href="kollacli.common.html#kollacli.common.service.Service.get_sub_servicenames">get_sub_servicenames() (kollacli.common.service.Service method)</a>
|
||||
</dt>
|
||||
|
||||
|
||||
<dt><a href="kollacli.common.html#kollacli.common.inventory.Inventory.get_sub_services">get_sub_services() (kollacli.common.inventory.Inventory method)</a>
|
||||
</dt>
|
||||
|
||||
|
||||
<dt><a href="kollacli.common.html#kollacli.common.host.Host.get_vars">get_vars() (kollacli.common.host.Host method)</a>
|
||||
</dt>
|
||||
|
||||
@ -779,7 +741,7 @@
|
||||
|
||||
</dl></dd>
|
||||
|
||||
<dt><a href="kollacli.api.html#kollacli.api.client.ClientApi.get_version">get_version() (kollacli.api.client.ClientApi method)</a>
|
||||
<dt><a href="kollacli.api.html#kollacli.api.client.ClientApi.get_version">get_version() (kollacli.api.client.ClientApi static method)</a>
|
||||
</dt>
|
||||
|
||||
|
||||
@ -859,27 +821,39 @@
|
||||
|
||||
</dl></dd>
|
||||
|
||||
<dt><a href="kollacli.api.html#kollacli.api.host.HostApi.host_add">host_add() (kollacli.api.host.HostApi method)</a>
|
||||
<dt><a href="kollacli.api.html#kollacli.api.host.HostApi.host_add">host_add() (kollacli.api.host.HostApi static method)</a>
|
||||
</dt>
|
||||
|
||||
|
||||
<dt><a href="kollacli.api.html#kollacli.api.host.HostApi.host_get">host_get() (kollacli.api.host.HostApi method)</a>
|
||||
<dt><a href="kollacli.api.html#kollacli.api.host.HostApi.host_destroy">host_destroy() (kollacli.api.host.HostApi static method)</a>
|
||||
</dt>
|
||||
|
||||
|
||||
<dt><a href="kollacli.api.html#kollacli.api.host.HostApi.host_get_all">host_get_all() (kollacli.api.host.HostApi method)</a>
|
||||
<dt><a href="kollacli.api.html#kollacli.api.host.HostApi.host_get">host_get() (kollacli.api.host.HostApi static method)</a>
|
||||
</dt>
|
||||
|
||||
|
||||
<dt><a href="kollacli.api.html#kollacli.api.host.HostApi.host_remove">host_remove() (kollacli.api.host.HostApi method)</a>
|
||||
<dt><a href="kollacli.api.html#kollacli.api.host.HostApi.host_get_all">host_get_all() (kollacli.api.host.HostApi static method)</a>
|
||||
</dt>
|
||||
|
||||
|
||||
<dt><a href="kollacli.api.html#kollacli.api.host.HostApi.host_setup">host_setup() (kollacli.api.host.HostApi method)</a>
|
||||
<dt><a href="kollacli.api.html#kollacli.api.host.HostApi.host_precheck">host_precheck() (kollacli.api.host.HostApi static method)</a>
|
||||
</dt>
|
||||
|
||||
|
||||
<dt><a href="kollacli.api.html#kollacli.api.host.HostApi.host_ssh_check">host_ssh_check() (kollacli.api.host.HostApi method)</a>
|
||||
<dt><a href="kollacli.api.html#kollacli.api.host.HostApi.host_remove">host_remove() (kollacli.api.host.HostApi static method)</a>
|
||||
</dt>
|
||||
|
||||
|
||||
<dt><a href="kollacli.api.html#kollacli.api.host.HostApi.host_setup">host_setup() (kollacli.api.host.HostApi static method)</a>
|
||||
</dt>
|
||||
|
||||
|
||||
<dt><a href="kollacli.api.html#kollacli.api.host.HostApi.host_ssh_check">host_ssh_check() (kollacli.api.host.HostApi static method)</a>
|
||||
</dt>
|
||||
|
||||
|
||||
<dt><a href="kollacli.api.html#kollacli.api.host.HostApi.host_stop">host_stop() (kollacli.api.host.HostApi static method)</a>
|
||||
</dt>
|
||||
|
||||
|
||||
@ -890,12 +864,12 @@
|
||||
<dt><a href="kollacli.api.html#kollacli.api.host.HostApi">HostApi (class in kollacli.api.host)</a>
|
||||
</dt>
|
||||
|
||||
</dl></td>
|
||||
<td style="width: 33%" valign="top"><dl>
|
||||
|
||||
<dt><a href="kollacli.commands.html#kollacli.commands.host.HostCheck">HostCheck (class in kollacli.commands.host)</a>
|
||||
</dt>
|
||||
|
||||
</dl></td>
|
||||
<td style="width: 33%" valign="top"><dl>
|
||||
|
||||
<dt><a href="kollacli.commands.html#kollacli.commands.host.HostDestroy">HostDestroy (class in kollacli.commands.host)</a>
|
||||
</dt>
|
||||
@ -980,6 +954,10 @@
|
||||
<dt><a href="kollacli.common.html#kollacli.common.utils.is_string_true">is_string_true() (in module kollacli.common.utils)</a>
|
||||
</dt>
|
||||
|
||||
|
||||
<dt><a href="kollacli.common.html#kollacli.common.service.Service.is_supported">is_supported() (kollacli.common.service.Service method)</a>
|
||||
</dt>
|
||||
|
||||
</dl></td>
|
||||
</tr></table>
|
||||
|
||||
@ -1025,15 +1003,11 @@
|
||||
</dt>
|
||||
|
||||
|
||||
<dt><a href="kollacli.api.html#module-kollacli.api.async">kollacli.api.async (module)</a>
|
||||
</dt>
|
||||
|
||||
|
||||
<dt><a href="kollacli.api.html#module-kollacli.api.client">kollacli.api.client (module)</a>
|
||||
</dt>
|
||||
|
||||
|
||||
<dt><a href="kollacli.api.html#module-kollacli.api.deploy">kollacli.api.deploy (module)</a>
|
||||
<dt><a href="kollacli.api.html#module-kollacli.api.control_plane">kollacli.api.control_plane (module)</a>
|
||||
</dt>
|
||||
|
||||
|
||||
@ -1096,9 +1070,17 @@
|
||||
<dt><a href="kollacli.commands.html#module-kollacli.commands.property">kollacli.commands.property (module)</a>
|
||||
</dt>
|
||||
|
||||
|
||||
<dt><a href="kollacli.commands.html#module-kollacli.commands.pull">kollacli.commands.pull (module)</a>
|
||||
</dt>
|
||||
|
||||
</dl></td>
|
||||
<td style="width: 33%" valign="top"><dl>
|
||||
|
||||
<dt><a href="kollacli.commands.html#module-kollacli.commands.reconfigure">kollacli.commands.reconfigure (module)</a>
|
||||
</dt>
|
||||
|
||||
|
||||
<dt><a href="kollacli.commands.html#module-kollacli.commands.service">kollacli.commands.service (module)</a>
|
||||
</dt>
|
||||
|
||||
@ -1292,12 +1274,12 @@
|
||||
<dt><a href="kollacli.common.html#kollacli.common.utils.PidManager">PidManager (class in kollacli.common.utils)</a>
|
||||
</dt>
|
||||
|
||||
</dl></td>
|
||||
<td style="width: 33%" valign="top"><dl>
|
||||
|
||||
<dt><a href="kollacli.common.ansible.html#kollacli.common.ansible.playbook.AnsiblePlaybook.playbook_path">playbook_path (kollacli.common.ansible.playbook.AnsiblePlaybook attribute)</a>
|
||||
</dt>
|
||||
|
||||
</dl></td>
|
||||
<td style="width: 33%" valign="top"><dl>
|
||||
|
||||
<dt><a href="kollacli.common.ansible.html#kollacli.common.ansible.actions.precheck">precheck() (in module kollacli.common.ansible.actions)</a>
|
||||
</dt>
|
||||
@ -1338,6 +1320,20 @@
|
||||
<dt><a href="kollacli.commands.html#kollacli.commands.property.PropertySet">PropertySet (class in kollacli.commands.property)</a>
|
||||
</dt>
|
||||
|
||||
|
||||
<dt><a href="kollacli.commands.html#kollacli.commands.pull.Pull">Pull (class in kollacli.commands.pull)</a>
|
||||
</dt>
|
||||
|
||||
|
||||
<dt><a href="kollacli.common.ansible.html#kollacli.common.ansible.actions.pull">pull() (in module kollacli.common.ansible.actions)</a>
|
||||
</dt>
|
||||
|
||||
<dd><dl>
|
||||
|
||||
<dt><a href="kollacli.api.html#kollacli.api.control_plane.ControlPlaneApi.pull">(kollacli.api.control_plane.ControlPlaneApi static method)</a>
|
||||
</dt>
|
||||
|
||||
</dl></dd>
|
||||
</dl></td>
|
||||
</tr></table>
|
||||
|
||||
@ -1345,9 +1341,19 @@
|
||||
<table style="width: 100%" class="indextable genindextable"><tr>
|
||||
<td style="width: 33%" valign="top"><dl>
|
||||
|
||||
<dt><a href="kollacli.commands.html#kollacli.commands.reconfigure.Reconfigure">Reconfigure (class in kollacli.commands.reconfigure)</a>
|
||||
</dt>
|
||||
|
||||
|
||||
<dt><a href="kollacli.common.ansible.html#kollacli.common.ansible.actions.reconfigure">reconfigure() (in module kollacli.common.ansible.actions)</a>
|
||||
</dt>
|
||||
|
||||
<dd><dl>
|
||||
|
||||
<dt><a href="kollacli.api.html#kollacli.api.control_plane.ControlPlaneApi.reconfigure">(kollacli.api.control_plane.ControlPlaneApi static method)</a>
|
||||
</dt>
|
||||
|
||||
</dl></dd>
|
||||
|
||||
<dt><a href="kollacli.common.html#kollacli.common.utils.Lock.release">release() (kollacli.common.utils.Lock method)</a>
|
||||
</dt>
|
||||
@ -1357,6 +1363,10 @@
|
||||
</dt>
|
||||
|
||||
|
||||
<dt><a href="kollacli.common.html#kollacli.common.service.Service.remove_childname">remove_childname() (kollacli.common.service.Service method)</a>
|
||||
</dt>
|
||||
|
||||
|
||||
<dt><a href="kollacli.common.html#kollacli.common.inventory.Inventory.remove_group">remove_group() (kollacli.common.inventory.Inventory method)</a>
|
||||
</dt>
|
||||
|
||||
@ -1374,6 +1384,8 @@
|
||||
</dt>
|
||||
|
||||
</dl></dd>
|
||||
</dl></td>
|
||||
<td style="width: 33%" valign="top"><dl>
|
||||
|
||||
<dt><a href="kollacli.api.html#kollacli.api.group.Group.remove_host">remove_host() (kollacli.api.group.Group method)</a>
|
||||
</dt>
|
||||
@ -1388,13 +1400,15 @@
|
||||
</dt>
|
||||
|
||||
</dl></dd>
|
||||
</dl></td>
|
||||
<td style="width: 33%" valign="top"><dl>
|
||||
|
||||
<dt><a href="kollacli.common.html#kollacli.common.inventory.Inventory.remove_json_gen_file">remove_json_gen_file() (kollacli.common.inventory.Inventory method)</a>
|
||||
</dt>
|
||||
|
||||
|
||||
<dt><a href="kollacli.common.html#kollacli.common.service.Service.remove_parentname">remove_parentname() (kollacli.common.service.Service method)</a>
|
||||
</dt>
|
||||
|
||||
|
||||
<dt><a href="kollacli.api.html#kollacli.api.group.Group.remove_service">remove_service() (kollacli.api.group.Group method)</a>
|
||||
</dt>
|
||||
|
||||
@ -1481,9 +1495,15 @@
|
||||
</dt>
|
||||
|
||||
|
||||
<dt><a href="kollacli.common.html#kollacli.common.inventory.Inventory.set_deploy_mode">set_deploy_mode() (kollacli.common.inventory.Inventory method)</a>
|
||||
<dt><a href="kollacli.api.html#kollacli.api.control_plane.ControlPlaneApi.set_deploy_mode">set_deploy_mode() (kollacli.api.control_plane.ControlPlaneApi static method)</a>
|
||||
</dt>
|
||||
|
||||
<dd><dl>
|
||||
|
||||
<dt><a href="kollacli.common.html#kollacli.common.inventory.Inventory.set_deploy_mode">(kollacli.common.inventory.Inventory method)</a>
|
||||
</dt>
|
||||
|
||||
</dl></dd>
|
||||
|
||||
<dt><a href="kollacli.common.html#kollacli.common.properties.AnsibleProperties.set_group_property">set_group_property() (kollacli.common.properties.AnsibleProperties method)</a>
|
||||
</dt>
|
||||
@ -1504,17 +1524,21 @@
|
||||
<dt><a href="kollacli.common.html#kollacli.common.passwords.set_password_sshkey">set_password_sshkey() (in module kollacli.common.passwords)</a>
|
||||
</dt>
|
||||
|
||||
</dl></td>
|
||||
<td style="width: 33%" valign="top"><dl>
|
||||
|
||||
<dt><a href="kollacli.common.html#kollacli.common.properties.AnsibleProperties.set_property">set_property() (kollacli.common.properties.AnsibleProperties method)</a>
|
||||
</dt>
|
||||
|
||||
</dl></td>
|
||||
<td style="width: 33%" valign="top"><dl>
|
||||
|
||||
<dt><a href="kollacli.common.html#kollacli.common.host_group.HostGroup.set_remote">set_remote() (kollacli.common.host_group.HostGroup method)</a>
|
||||
</dt>
|
||||
|
||||
|
||||
<dt><a href="kollacli.common.html#kollacli.common.service.Service.set_supported">set_supported() (kollacli.common.service.Service method)</a>
|
||||
</dt>
|
||||
|
||||
|
||||
<dt><a href="kollacli.common.html#kollacli.common.host.Host.set_var">set_var() (kollacli.common.host.Host method)</a>
|
||||
</dt>
|
||||
|
||||
@ -1692,6 +1716,14 @@
|
||||
</dt>
|
||||
|
||||
|
||||
<dt><a href="kollacli.commands.html#kollacli.commands.pull.Pull.take_action">(kollacli.commands.pull.Pull method)</a>
|
||||
</dt>
|
||||
|
||||
|
||||
<dt><a href="kollacli.commands.html#kollacli.commands.reconfigure.Reconfigure.take_action">(kollacli.commands.reconfigure.Reconfigure method)</a>
|
||||
</dt>
|
||||
|
||||
|
||||
<dt><a href="kollacli.commands.html#kollacli.commands.service.ServiceAddGroup.take_action">(kollacli.commands.service.ServiceAddGroup method)</a>
|
||||
</dt>
|
||||
|
||||
@ -1734,6 +1766,10 @@
|
||||
|
||||
<dd><dl>
|
||||
|
||||
<dt><a href="kollacli.api.html#kollacli.api.control_plane.ControlPlaneApi.upgrade">(kollacli.api.control_plane.ControlPlaneApi static method)</a>
|
||||
</dt>
|
||||
|
||||
|
||||
<dt><a href="kollacli.common.html#kollacli.common.host.Host.upgrade">(kollacli.common.host.Host method)</a>
|
||||
</dt>
|
||||
|
||||
@ -1847,7 +1883,7 @@
|
||||
<li class="right" >
|
||||
<a href="py-modindex.html" title="Python Module Index"
|
||||
>modules</a> |</li>
|
||||
<li><a href="index.html">kollacli 4.0.0.dev483 documentation</a> »</li>
|
||||
<li><a href="index.html">kollacli 4.0.1.dev498 documentation</a> »</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="footer">
|
||||
|
10
doc/build/html/index.html
vendored
10
doc/build/html/index.html
vendored
@ -6,7 +6,7 @@
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
|
||||
<title>Welcome to kollacli’s documentation! — kollacli 4.0.0.dev483 documentation</title>
|
||||
<title>Welcome to kollacli’s documentation! — kollacli 4.0.1.dev498 documentation</title>
|
||||
|
||||
<link rel="stylesheet" href="_static/default.css" type="text/css" />
|
||||
<link rel="stylesheet" href="_static/pygments.css" type="text/css" />
|
||||
@ -14,7 +14,7 @@
|
||||
<script type="text/javascript">
|
||||
var DOCUMENTATION_OPTIONS = {
|
||||
URL_ROOT: './',
|
||||
VERSION: '4.0.0.dev483',
|
||||
VERSION: '4.0.1.dev498',
|
||||
COLLAPSE_INDEX: false,
|
||||
FILE_SUFFIX: '.html',
|
||||
HAS_SOURCE: true
|
||||
@ -23,7 +23,7 @@
|
||||
<script type="text/javascript" src="_static/jquery.js"></script>
|
||||
<script type="text/javascript" src="_static/underscore.js"></script>
|
||||
<script type="text/javascript" src="_static/doctools.js"></script>
|
||||
<link rel="top" title="kollacli 4.0.0.dev483 documentation" href="#" />
|
||||
<link rel="top" title="kollacli 4.0.1.dev498 documentation" href="#" />
|
||||
</head>
|
||||
<body>
|
||||
<div class="related">
|
||||
@ -35,7 +35,7 @@
|
||||
<li class="right" >
|
||||
<a href="py-modindex.html" title="Python Module Index"
|
||||
>modules</a> |</li>
|
||||
<li><a href="#">kollacli 4.0.0.dev483 documentation</a> »</li>
|
||||
<li><a href="#">kollacli 4.0.1.dev498 documentation</a> »</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
@ -104,7 +104,7 @@
|
||||
<li class="right" >
|
||||
<a href="py-modindex.html" title="Python Module Index"
|
||||
>modules</a> |</li>
|
||||
<li><a href="#">kollacli 4.0.0.dev483 documentation</a> »</li>
|
||||
<li><a href="#">kollacli 4.0.1.dev498 documentation</a> »</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="footer">
|
||||
|
342
doc/build/html/kollacli.api.html
vendored
342
doc/build/html/kollacli.api.html
vendored
@ -6,7 +6,7 @@
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
|
||||
<title>kollacli.api package — kollacli 4.0.0.dev483 documentation</title>
|
||||
<title>kollacli.api package — kollacli 4.0.1.dev498 documentation</title>
|
||||
|
||||
<link rel="stylesheet" href="_static/default.css" type="text/css" />
|
||||
<link rel="stylesheet" href="_static/pygments.css" type="text/css" />
|
||||
@ -14,7 +14,7 @@
|
||||
<script type="text/javascript">
|
||||
var DOCUMENTATION_OPTIONS = {
|
||||
URL_ROOT: './',
|
||||
VERSION: '4.0.0.dev483',
|
||||
VERSION: '4.0.1.dev498',
|
||||
COLLAPSE_INDEX: false,
|
||||
FILE_SUFFIX: '.html',
|
||||
HAS_SOURCE: true
|
||||
@ -23,7 +23,7 @@
|
||||
<script type="text/javascript" src="_static/jquery.js"></script>
|
||||
<script type="text/javascript" src="_static/underscore.js"></script>
|
||||
<script type="text/javascript" src="_static/doctools.js"></script>
|
||||
<link rel="top" title="kollacli 4.0.0.dev483 documentation" href="index.html" />
|
||||
<link rel="top" title="kollacli 4.0.1.dev498 documentation" href="index.html" />
|
||||
</head>
|
||||
<body>
|
||||
<div class="related">
|
||||
@ -35,7 +35,7 @@
|
||||
<li class="right" >
|
||||
<a href="py-modindex.html" title="Python Module Index"
|
||||
>modules</a> |</li>
|
||||
<li><a href="index.html">kollacli 4.0.0.dev483 documentation</a> »</li>
|
||||
<li><a href="index.html">kollacli 4.0.1.dev498 documentation</a> »</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
@ -49,15 +49,50 @@
|
||||
<div class="section" id="submodules">
|
||||
<h2>Submodules<a class="headerlink" href="#submodules" title="Permalink to this headline">¶</a></h2>
|
||||
</div>
|
||||
<div class="section" id="module-kollacli.api.async">
|
||||
<span id="kollacli-api-async-module"></span><h2>kollacli.api.async module<a class="headerlink" href="#module-kollacli.api.async" title="Permalink to this headline">¶</a></h2>
|
||||
<div class="section" id="module-kollacli.api.client">
|
||||
<span id="kollacli-api-client-module"></span><h2>kollacli.api.client module<a class="headerlink" href="#module-kollacli.api.client" title="Permalink to this headline">¶</a></h2>
|
||||
<dl class="class">
|
||||
<dt id="kollacli.api.async.AsyncApi">
|
||||
<em class="property">class </em><tt class="descclassname">kollacli.api.async.</tt><tt class="descname">AsyncApi</tt><a class="reference internal" href="_modules/kollacli/api/async.html#AsyncApi"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#kollacli.api.async.AsyncApi" title="Permalink to this definition">¶</a></dt>
|
||||
<dt id="kollacli.api.client.ClientApi">
|
||||
<em class="property">class </em><tt class="descclassname">kollacli.api.client.</tt><tt class="descname">ClientApi</tt><a class="reference internal" href="_modules/kollacli/api/client.html#ClientApi"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#kollacli.api.client.ClientApi" title="Permalink to this definition">¶</a></dt>
|
||||
<dd><p>Bases: <a class="reference internal" href="#kollacli.api.control_plane.ControlPlaneApi" title="kollacli.api.control_plane.ControlPlaneApi"><tt class="xref py py-class docutils literal"><span class="pre">kollacli.api.control_plane.ControlPlaneApi</span></tt></a>, <a class="reference internal" href="#kollacli.api.group.GroupApi" title="kollacli.api.group.GroupApi"><tt class="xref py py-class docutils literal"><span class="pre">kollacli.api.group.GroupApi</span></tt></a>, <a class="reference internal" href="#kollacli.api.host.HostApi" title="kollacli.api.host.HostApi"><tt class="xref py py-class docutils literal"><span class="pre">kollacli.api.host.HostApi</span></tt></a>, <a class="reference internal" href="#kollacli.api.password.PasswordApi" title="kollacli.api.password.PasswordApi"><tt class="xref py py-class docutils literal"><span class="pre">kollacli.api.password.PasswordApi</span></tt></a>, <a class="reference internal" href="#kollacli.api.properties.PropertyApi" title="kollacli.api.properties.PropertyApi"><tt class="xref py py-class docutils literal"><span class="pre">kollacli.api.properties.PropertyApi</span></tt></a>, <a class="reference internal" href="#kollacli.api.service.ServiceApi" title="kollacli.api.service.ServiceApi"><tt class="xref py py-class docutils literal"><span class="pre">kollacli.api.service.ServiceApi</span></tt></a>, <a class="reference internal" href="#kollacli.api.support.SupportApi" title="kollacli.api.support.SupportApi"><tt class="xref py py-class docutils literal"><span class="pre">kollacli.api.support.SupportApi</span></tt></a></p>
|
||||
<p>Client API Notes</p>
|
||||
<p>Objects returned by the API contain a local copy of the information
|
||||
in the datastore. While changes made to the local copy will be
|
||||
reflected in the local object, changes made to the datastore
|
||||
from other objects will not be reflected in this local copy. The
|
||||
object will need to be re-fetched from the datastore to reflect
|
||||
the updates.</p>
|
||||
<dl class="staticmethod">
|
||||
<dt id="kollacli.api.client.ClientApi.base_call">
|
||||
<em class="property">static </em><tt class="descname">base_call</tt><big>(</big><big>)</big><a class="reference internal" href="_modules/kollacli/api/client.html#ClientApi.base_call"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#kollacli.api.client.ClientApi.base_call" title="Permalink to this definition">¶</a></dt>
|
||||
<dd></dd></dl>
|
||||
|
||||
<dl class="staticmethod">
|
||||
<dt id="kollacli.api.client.ClientApi.enable_console_logging">
|
||||
<em class="property">static </em><tt class="descname">enable_console_logging</tt><big>(</big><em>level</em>, <em>enable=True</em><big>)</big><a class="reference internal" href="_modules/kollacli/api/client.html#ClientApi.enable_console_logging"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#kollacli.api.client.ClientApi.enable_console_logging" title="Permalink to this definition">¶</a></dt>
|
||||
<dd><p>enable/disable console logging for the api</p>
|
||||
<p>enable: True/False
|
||||
level: logging.INFO, logging.DEBUG, logging.WARNING,
|
||||
logging.CRITICAL...</p>
|
||||
</dd></dl>
|
||||
|
||||
<dl class="staticmethod">
|
||||
<dt id="kollacli.api.client.ClientApi.get_version">
|
||||
<em class="property">static </em><tt class="descname">get_version</tt><big>(</big><big>)</big><a class="reference internal" href="_modules/kollacli/api/client.html#ClientApi.get_version"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#kollacli.api.client.ClientApi.get_version" title="Permalink to this definition">¶</a></dt>
|
||||
<dd></dd></dl>
|
||||
|
||||
</dd></dl>
|
||||
|
||||
</div>
|
||||
<div class="section" id="module-kollacli.api.control_plane">
|
||||
<span id="kollacli-api-control-plane-module"></span><h2>kollacli.api.control_plane module<a class="headerlink" href="#module-kollacli.api.control_plane" title="Permalink to this headline">¶</a></h2>
|
||||
<dl class="class">
|
||||
<dt id="kollacli.api.control_plane.ControlPlaneApi">
|
||||
<em class="property">class </em><tt class="descclassname">kollacli.api.control_plane.</tt><tt class="descname">ControlPlaneApi</tt><a class="reference internal" href="_modules/kollacli/api/control_plane.html#ControlPlaneApi"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#kollacli.api.control_plane.ControlPlaneApi" title="Permalink to this definition">¶</a></dt>
|
||||
<dd><p>Bases: <tt class="xref py py-class docutils literal"><span class="pre">object</span></tt></p>
|
||||
<dl class="method">
|
||||
<dt id="kollacli.api.async.AsyncApi.async_deploy">
|
||||
<tt class="descname">async_deploy</tt><big>(</big><em>hostnames=[]</em>, <em>serial_flag=False</em>, <em>verbose_level=1</em>, <em>servicenames=[]</em><big>)</big><a class="reference internal" href="_modules/kollacli/api/async.html#AsyncApi.async_deploy"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#kollacli.api.async.AsyncApi.async_deploy" title="Permalink to this definition">¶</a></dt>
|
||||
<dl class="staticmethod">
|
||||
<dt id="kollacli.api.control_plane.ControlPlaneApi.deploy">
|
||||
<em class="property">static </em><tt class="descname">deploy</tt><big>(</big><em>hostnames=[]</em>, <em>serial_flag=False</em>, <em>verbose_level=1</em>, <em>servicenames=[]</em><big>)</big><a class="reference internal" href="_modules/kollacli/api/control_plane.html#ControlPlaneApi.deploy"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#kollacli.api.control_plane.ControlPlaneApi.deploy" title="Permalink to this definition">¶</a></dt>
|
||||
<dd><p>Deploy.</p>
|
||||
<p>Deploy containers to hosts.</p>
|
||||
<table class="docutils field-list" frame="void" rules="none">
|
||||
@ -82,78 +117,28 @@
|
||||
</table>
|
||||
</dd></dl>
|
||||
|
||||
<dl class="method">
|
||||
<dt id="kollacli.api.async.AsyncApi.async_host_destroy">
|
||||
<tt class="descname">async_host_destroy</tt><big>(</big><em>hostnames</em>, <em>destroy_type</em>, <em>verbose_level=1</em>, <em>include_data=False</em>, <em>remove_images=False</em><big>)</big><a class="reference internal" href="_modules/kollacli/api/async.html#AsyncApi.async_host_destroy"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#kollacli.api.async.AsyncApi.async_host_destroy" title="Permalink to this definition">¶</a></dt>
|
||||
<dd><p>Destroy Hosts.</p>
|
||||
<p>Stops and removes all kolla related docker containers on the
|
||||
specified hosts.</p>
|
||||
<dl class="staticmethod">
|
||||
<dt id="kollacli.api.control_plane.ControlPlaneApi.pull">
|
||||
<em class="property">static </em><tt class="descname">pull</tt><big>(</big><em>verbose_level=1</em><big>)</big><a class="reference internal" href="_modules/kollacli/api/control_plane.html#ControlPlaneApi.pull"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#kollacli.api.control_plane.ControlPlaneApi.pull" title="Permalink to this definition">¶</a></dt>
|
||||
<dd><p>Pull.</p>
|
||||
<p>Pull container images onto appropriate hosts.</p>
|
||||
<table class="docutils field-list" frame="void" rules="none">
|
||||
<col class="field-name" />
|
||||
<col class="field-body" />
|
||||
<tbody valign="top">
|
||||
<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first simple">
|
||||
<li><strong>hostnames</strong> (<em>list</em>) – host names</li>
|
||||
<li><strong>destroy_type</strong> (<em>string</em>) – either ‘kill’ or ‘stop’</li>
|
||||
<li><strong>verbose_level</strong> (<em>integer</em>) – the higher the number, the more verbose</li>
|
||||
<li><strong>include_data</strong> (<em>boolean</em>) – if true, destroy data containers too.</li>
|
||||
<li><strong>remove_images</strong> (<em>boolean</em>) – if true, destroy will remove the docker images</li>
|
||||
</ul>
|
||||
</td>
|
||||
<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>verbose_level</strong> (<em>integer</em>) – the higher the number, the more verbose</td>
|
||||
</tr>
|
||||
<tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body"><p class="first">Job object</p>
|
||||
</td>
|
||||
<tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body">Job object</td>
|
||||
</tr>
|
||||
<tr class="field-odd field"><th class="field-name">Return type:</th><td class="field-body"><p class="first last">Job</p>
|
||||
</td>
|
||||
<tr class="field-odd field"><th class="field-name">Return type:</th><td class="field-body">Job</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</dd></dl>
|
||||
|
||||
<dl class="method">
|
||||
<dt id="kollacli.api.async.AsyncApi.async_host_precheck">
|
||||
<tt class="descname">async_host_precheck</tt><big>(</big><em>hostnames</em>, <em>verbose_level=1</em><big>)</big><a class="reference internal" href="_modules/kollacli/api/async.html#AsyncApi.async_host_precheck"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#kollacli.api.async.AsyncApi.async_host_precheck" title="Permalink to this definition">¶</a></dt>
|
||||
<dd><p>Check pre-deployment configuration of hosts.</p>
|
||||
<p>Check if host is ready for a new deployment. This will fail if
|
||||
any of the hosts are not configured correctly or if they have
|
||||
already been deployed to.
|
||||
:param hostnames: host names
|
||||
:type hostnames: list
|
||||
:param verbose_level: the higher the number, the more verbose
|
||||
:type verbose_level: integer
|
||||
:return: Job object
|
||||
:rtype: Job</p>
|
||||
</dd></dl>
|
||||
|
||||
<dl class="method">
|
||||
<dt id="kollacli.api.async.AsyncApi.async_host_stop">
|
||||
<tt class="descname">async_host_stop</tt><big>(</big><em>hostnames</em>, <em>verbose_level=1</em><big>)</big><a class="reference internal" href="_modules/kollacli/api/async.html#AsyncApi.async_host_stop"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#kollacli.api.async.AsyncApi.async_host_stop" title="Permalink to this definition">¶</a></dt>
|
||||
<dd><p>Stop Hosts.</p>
|
||||
<p>Stops all kolla related docker containers on the specified hosts.</p>
|
||||
<table class="docutils field-list" frame="void" rules="none">
|
||||
<col class="field-name" />
|
||||
<col class="field-body" />
|
||||
<tbody valign="top">
|
||||
<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first simple">
|
||||
<li><strong>hostnames</strong> (<em>list</em>) – host names</li>
|
||||
<li><strong>verbose_level</strong> (<em>integer</em>) – the higher the number, the more verbose</li>
|
||||
</ul>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body"><p class="first">Job object</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="field-odd field"><th class="field-name">Return type:</th><td class="field-body"><p class="first last">Job</p>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</dd></dl>
|
||||
|
||||
<dl class="method">
|
||||
<dt id="kollacli.api.async.AsyncApi.async_reconfigure">
|
||||
<tt class="descname">async_reconfigure</tt><big>(</big><em>verbose_level=1</em><big>)</big><a class="reference internal" href="_modules/kollacli/api/async.html#AsyncApi.async_reconfigure"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#kollacli.api.async.AsyncApi.async_reconfigure" title="Permalink to this definition">¶</a></dt>
|
||||
<dl class="staticmethod">
|
||||
<dt id="kollacli.api.control_plane.ControlPlaneApi.reconfigure">
|
||||
<em class="property">static </em><tt class="descname">reconfigure</tt><big>(</big><em>verbose_level=1</em><big>)</big><a class="reference internal" href="_modules/kollacli/api/control_plane.html#ControlPlaneApi.reconfigure"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#kollacli.api.control_plane.ControlPlaneApi.reconfigure" title="Permalink to this definition">¶</a></dt>
|
||||
<dd><p>Reconfigure.</p>
|
||||
<p>Reconfigure containers on hosts.</p>
|
||||
<table class="docutils field-list" frame="void" rules="none">
|
||||
@ -170,9 +155,28 @@ already been deployed to.
|
||||
</table>
|
||||
</dd></dl>
|
||||
|
||||
<dl class="method">
|
||||
<dt id="kollacli.api.async.AsyncApi.async_upgrade">
|
||||
<tt class="descname">async_upgrade</tt><big>(</big><em>verbose_level=1</em>, <em>servicenames=[]</em><big>)</big><a class="reference internal" href="_modules/kollacli/api/async.html#AsyncApi.async_upgrade"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#kollacli.api.async.AsyncApi.async_upgrade" title="Permalink to this definition">¶</a></dt>
|
||||
<dl class="staticmethod">
|
||||
<dt id="kollacli.api.control_plane.ControlPlaneApi.set_deploy_mode">
|
||||
<em class="property">static </em><tt class="descname">set_deploy_mode</tt><big>(</big><em>remote_mode</em><big>)</big><a class="reference internal" href="_modules/kollacli/api/control_plane.html#ControlPlaneApi.set_deploy_mode"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#kollacli.api.control_plane.ControlPlaneApi.set_deploy_mode" title="Permalink to this definition">¶</a></dt>
|
||||
<dd><p>Set deploy mode.</p>
|
||||
<p>Set deploy mode to either local or remote. Local indicates
|
||||
that the openstack deployment will be to the local host.
|
||||
Remote means that the deployment is executed via ssh.</p>
|
||||
<p>NOTE: local mode is not supported and should never be used
|
||||
in production environments.</p>
|
||||
<table class="docutils field-list" frame="void" rules="none">
|
||||
<col class="field-name" />
|
||||
<col class="field-body" />
|
||||
<tbody valign="top">
|
||||
<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>remote_mode</strong> (<em>bool</em>) – if remote mode is True deployment is done via ssh</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</dd></dl>
|
||||
|
||||
<dl class="staticmethod">
|
||||
<dt id="kollacli.api.control_plane.ControlPlaneApi.upgrade">
|
||||
<em class="property">static </em><tt class="descname">upgrade</tt><big>(</big><em>verbose_level=1</em>, <em>servicenames=[]</em><big>)</big><a class="reference internal" href="_modules/kollacli/api/control_plane.html#ControlPlaneApi.upgrade"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#kollacli.api.control_plane.ControlPlaneApi.upgrade" title="Permalink to this definition">¶</a></dt>
|
||||
<dd><p>Upgrade.</p>
|
||||
<table class="docutils field-list" frame="void" rules="none">
|
||||
<col class="field-name" />
|
||||
@ -198,69 +202,6 @@ already been deployed to.
|
||||
|
||||
</dd></dl>
|
||||
|
||||
</div>
|
||||
<div class="section" id="module-kollacli.api.client">
|
||||
<span id="kollacli-api-client-module"></span><h2>kollacli.api.client module<a class="headerlink" href="#module-kollacli.api.client" title="Permalink to this headline">¶</a></h2>
|
||||
<dl class="class">
|
||||
<dt id="kollacli.api.client.ClientApi">
|
||||
<em class="property">class </em><tt class="descclassname">kollacli.api.client.</tt><tt class="descname">ClientApi</tt><a class="reference internal" href="_modules/kollacli/api/client.html#ClientApi"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#kollacli.api.client.ClientApi" title="Permalink to this definition">¶</a></dt>
|
||||
<dd><p>Bases: <a class="reference internal" href="#kollacli.api.async.AsyncApi" title="kollacli.api.async.AsyncApi"><tt class="xref py py-class docutils literal"><span class="pre">kollacli.api.async.AsyncApi</span></tt></a>, <a class="reference internal" href="#kollacli.api.deploy.DeployApi" title="kollacli.api.deploy.DeployApi"><tt class="xref py py-class docutils literal"><span class="pre">kollacli.api.deploy.DeployApi</span></tt></a>, <a class="reference internal" href="#kollacli.api.group.GroupApi" title="kollacli.api.group.GroupApi"><tt class="xref py py-class docutils literal"><span class="pre">kollacli.api.group.GroupApi</span></tt></a>, <a class="reference internal" href="#kollacli.api.host.HostApi" title="kollacli.api.host.HostApi"><tt class="xref py py-class docutils literal"><span class="pre">kollacli.api.host.HostApi</span></tt></a>, <a class="reference internal" href="#kollacli.api.password.PasswordApi" title="kollacli.api.password.PasswordApi"><tt class="xref py py-class docutils literal"><span class="pre">kollacli.api.password.PasswordApi</span></tt></a>, <a class="reference internal" href="#kollacli.api.properties.PropertyApi" title="kollacli.api.properties.PropertyApi"><tt class="xref py py-class docutils literal"><span class="pre">kollacli.api.properties.PropertyApi</span></tt></a>, <a class="reference internal" href="#kollacli.api.service.ServiceApi" title="kollacli.api.service.ServiceApi"><tt class="xref py py-class docutils literal"><span class="pre">kollacli.api.service.ServiceApi</span></tt></a>, <a class="reference internal" href="#kollacli.api.support.SupportApi" title="kollacli.api.support.SupportApi"><tt class="xref py py-class docutils literal"><span class="pre">kollacli.api.support.SupportApi</span></tt></a></p>
|
||||
<p>Client API Notes</p>
|
||||
<p>Objects returned by the API contain a local copy of the information
|
||||
in the datastore. While changes made to the local copy will be
|
||||
reflected in the local object, changes made to the datastore
|
||||
from other objects will not be reflected in this local copy. The
|
||||
object will need to be re-fetched from the datastore to reflect
|
||||
the updates.</p>
|
||||
<dl class="method">
|
||||
<dt id="kollacli.api.client.ClientApi.base_call">
|
||||
<tt class="descname">base_call</tt><big>(</big><big>)</big><a class="reference internal" href="_modules/kollacli/api/client.html#ClientApi.base_call"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#kollacli.api.client.ClientApi.base_call" title="Permalink to this definition">¶</a></dt>
|
||||
<dd></dd></dl>
|
||||
|
||||
<dl class="method">
|
||||
<dt id="kollacli.api.client.ClientApi.enable_console_logging">
|
||||
<tt class="descname">enable_console_logging</tt><big>(</big><em>level</em>, <em>enable=True</em><big>)</big><a class="reference internal" href="_modules/kollacli/api/client.html#ClientApi.enable_console_logging"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#kollacli.api.client.ClientApi.enable_console_logging" title="Permalink to this definition">¶</a></dt>
|
||||
<dd><p>enable/disable console logging for the api</p>
|
||||
<p>enable: True/False
|
||||
level: logging.INFO, logging.DEBUG, logging.WARNING,
|
||||
logging.CRITICAL...</p>
|
||||
</dd></dl>
|
||||
|
||||
<dl class="method">
|
||||
<dt id="kollacli.api.client.ClientApi.get_version">
|
||||
<tt class="descname">get_version</tt><big>(</big><big>)</big><a class="reference internal" href="_modules/kollacli/api/client.html#ClientApi.get_version"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#kollacli.api.client.ClientApi.get_version" title="Permalink to this definition">¶</a></dt>
|
||||
<dd></dd></dl>
|
||||
|
||||
</dd></dl>
|
||||
|
||||
</div>
|
||||
<div class="section" id="module-kollacli.api.deploy">
|
||||
<span id="kollacli-api-deploy-module"></span><h2>kollacli.api.deploy module<a class="headerlink" href="#module-kollacli.api.deploy" title="Permalink to this headline">¶</a></h2>
|
||||
<dl class="class">
|
||||
<dt id="kollacli.api.deploy.DeployApi">
|
||||
<em class="property">class </em><tt class="descclassname">kollacli.api.deploy.</tt><tt class="descname">DeployApi</tt><a class="reference internal" href="_modules/kollacli/api/deploy.html#DeployApi"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#kollacli.api.deploy.DeployApi" title="Permalink to this definition">¶</a></dt>
|
||||
<dd><p>Bases: <tt class="xref py py-class docutils literal"><span class="pre">object</span></tt></p>
|
||||
<dl class="method">
|
||||
<dt id="kollacli.api.deploy.DeployApi.deploy_set_mode">
|
||||
<tt class="descname">deploy_set_mode</tt><big>(</big><em>remote_mode</em><big>)</big><a class="reference internal" href="_modules/kollacli/api/deploy.html#DeployApi.deploy_set_mode"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#kollacli.api.deploy.DeployApi.deploy_set_mode" title="Permalink to this definition">¶</a></dt>
|
||||
<dd><p>Set deploy mode.</p>
|
||||
<p>Set deploy mode to either local or remote. Local indicates
|
||||
that the openstack deployment will be to the local host.
|
||||
Remote means that the deployment is executed via ssh.</p>
|
||||
<p>NOTE: local mode is not supported and should never be used
|
||||
in production environments.</p>
|
||||
<table class="docutils field-list" frame="void" rules="none">
|
||||
<col class="field-name" />
|
||||
<col class="field-body" />
|
||||
<tbody valign="top">
|
||||
<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>remote_mode</strong> (<em>bool</em>) – if remote mode is True deployment is done via ssh</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</dd></dl>
|
||||
|
||||
</dd></dl>
|
||||
|
||||
</div>
|
||||
<div class="section" id="module-kollacli.api.exceptions">
|
||||
<span id="kollacli-api-exceptions-module"></span><h2>kollacli.api.exceptions module<a class="headerlink" href="#module-kollacli.api.exceptions" title="Permalink to this headline">¶</a></h2>
|
||||
@ -505,7 +446,7 @@ in production environments.</p>
|
||||
<span id="kollacli-api-host-module"></span><h2>kollacli.api.host module<a class="headerlink" href="#module-kollacli.api.host" title="Permalink to this headline">¶</a></h2>
|
||||
<dl class="class">
|
||||
<dt id="kollacli.api.host.Host">
|
||||
<em class="property">class </em><tt class="descclassname">kollacli.api.host.</tt><tt class="descname">Host</tt><big>(</big><em>hostname</em>, <em>groupnames</em><big>)</big><a class="reference internal" href="_modules/kollacli/api/host.html#Host"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#kollacli.api.host.Host" title="Permalink to this definition">¶</a></dt>
|
||||
<em class="property">class </em><tt class="descclassname">kollacli.api.host.</tt><tt class="descname">Host</tt><big>(</big><em>hostname</em>, <em>groupnames=[]</em><big>)</big><a class="reference internal" href="_modules/kollacli/api/host.html#Host"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#kollacli.api.host.Host" title="Permalink to this definition">¶</a></dt>
|
||||
<dd><p>Bases: <tt class="xref py py-class docutils literal"><span class="pre">object</span></tt></p>
|
||||
<p>Host</p>
|
||||
<dl class="method">
|
||||
@ -549,9 +490,9 @@ changes.</p>
|
||||
<dt id="kollacli.api.host.HostApi">
|
||||
<em class="property">class </em><tt class="descclassname">kollacli.api.host.</tt><tt class="descname">HostApi</tt><a class="reference internal" href="_modules/kollacli/api/host.html#HostApi"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#kollacli.api.host.HostApi" title="Permalink to this definition">¶</a></dt>
|
||||
<dd><p>Bases: <tt class="xref py py-class docutils literal"><span class="pre">object</span></tt></p>
|
||||
<dl class="method">
|
||||
<dl class="staticmethod">
|
||||
<dt id="kollacli.api.host.HostApi.host_add">
|
||||
<tt class="descname">host_add</tt><big>(</big><em>hostnames</em><big>)</big><a class="reference internal" href="_modules/kollacli/api/host.html#HostApi.host_add"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#kollacli.api.host.HostApi.host_add" title="Permalink to this definition">¶</a></dt>
|
||||
<em class="property">static </em><tt class="descname">host_add</tt><big>(</big><em>hostnames</em><big>)</big><a class="reference internal" href="_modules/kollacli/api/host.html#HostApi.host_add"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#kollacli.api.host.HostApi.host_add" title="Permalink to this definition">¶</a></dt>
|
||||
<dd><p>Add hosts to the inventory</p>
|
||||
<table class="docutils field-list" frame="void" rules="none">
|
||||
<col class="field-name" />
|
||||
@ -563,9 +504,38 @@ changes.</p>
|
||||
</table>
|
||||
</dd></dl>
|
||||
|
||||
<dl class="method">
|
||||
<dl class="staticmethod">
|
||||
<dt id="kollacli.api.host.HostApi.host_destroy">
|
||||
<em class="property">static </em><tt class="descname">host_destroy</tt><big>(</big><em>hostnames</em>, <em>destroy_type</em>, <em>verbose_level=1</em>, <em>include_data=False</em>, <em>remove_images=False</em><big>)</big><a class="reference internal" href="_modules/kollacli/api/host.html#HostApi.host_destroy"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#kollacli.api.host.HostApi.host_destroy" title="Permalink to this definition">¶</a></dt>
|
||||
<dd><p>Destroy Hosts.</p>
|
||||
<p>Stops and removes all kolla related docker containers on the
|
||||
specified hosts.</p>
|
||||
<table class="docutils field-list" frame="void" rules="none">
|
||||
<col class="field-name" />
|
||||
<col class="field-body" />
|
||||
<tbody valign="top">
|
||||
<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first simple">
|
||||
<li><strong>hostnames</strong> (<em>list</em>) – host names</li>
|
||||
<li><strong>destroy_type</strong> (<em>string</em>) – either ‘kill’ or ‘stop’</li>
|
||||
<li><strong>verbose_level</strong> (<em>integer</em>) – the higher the number, the more verbose</li>
|
||||
<li><strong>include_data</strong> (<em>boolean</em>) – if true, destroy data containers too.</li>
|
||||
<li><strong>remove_images</strong> (<em>boolean</em>) – if true, destroy will remove the docker images</li>
|
||||
</ul>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body"><p class="first">Job object</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="field-odd field"><th class="field-name">Return type:</th><td class="field-body"><p class="first last">Job</p>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</dd></dl>
|
||||
|
||||
<dl class="staticmethod">
|
||||
<dt id="kollacli.api.host.HostApi.host_get">
|
||||
<tt class="descname">host_get</tt><big>(</big><em>hostnames</em><big>)</big><a class="reference internal" href="_modules/kollacli/api/host.html#HostApi.host_get"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#kollacli.api.host.HostApi.host_get" title="Permalink to this definition">¶</a></dt>
|
||||
<em class="property">static </em><tt class="descname">host_get</tt><big>(</big><em>hostnames</em><big>)</big><a class="reference internal" href="_modules/kollacli/api/host.html#HostApi.host_get"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#kollacli.api.host.HostApi.host_get" title="Permalink to this definition">¶</a></dt>
|
||||
<dd><p>Get selected hosts in the inventory</p>
|
||||
<table class="docutils field-list" frame="void" rules="none">
|
||||
<col class="field-name" />
|
||||
@ -581,9 +551,9 @@ changes.</p>
|
||||
</table>
|
||||
</dd></dl>
|
||||
|
||||
<dl class="method">
|
||||
<dl class="staticmethod">
|
||||
<dt id="kollacli.api.host.HostApi.host_get_all">
|
||||
<tt class="descname">host_get_all</tt><big>(</big><big>)</big><a class="reference internal" href="_modules/kollacli/api/host.html#HostApi.host_get_all"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#kollacli.api.host.HostApi.host_get_all" title="Permalink to this definition">¶</a></dt>
|
||||
<em class="property">static </em><tt class="descname">host_get_all</tt><big>(</big><big>)</big><a class="reference internal" href="_modules/kollacli/api/host.html#HostApi.host_get_all"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#kollacli.api.host.HostApi.host_get_all" title="Permalink to this definition">¶</a></dt>
|
||||
<dd><p>Get all hosts in the inventory</p>
|
||||
<table class="docutils field-list" frame="void" rules="none">
|
||||
<col class="field-name" />
|
||||
@ -597,9 +567,24 @@ changes.</p>
|
||||
</table>
|
||||
</dd></dl>
|
||||
|
||||
<dl class="method">
|
||||
<dl class="staticmethod">
|
||||
<dt id="kollacli.api.host.HostApi.host_precheck">
|
||||
<em class="property">static </em><tt class="descname">host_precheck</tt><big>(</big><em>hostnames</em>, <em>verbose_level=1</em><big>)</big><a class="reference internal" href="_modules/kollacli/api/host.html#HostApi.host_precheck"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#kollacli.api.host.HostApi.host_precheck" title="Permalink to this definition">¶</a></dt>
|
||||
<dd><p>Check pre-deployment configuration of hosts.</p>
|
||||
<p>Check if host is ready for a new deployment. This will fail if
|
||||
any of the hosts are not configured correctly or if they have
|
||||
already been deployed to.
|
||||
:param hostnames: host names
|
||||
:type hostnames: list
|
||||
:param verbose_level: the higher the number, the more verbose
|
||||
:type verbose_level: integer
|
||||
:return: Job object
|
||||
:rtype: Job</p>
|
||||
</dd></dl>
|
||||
|
||||
<dl class="staticmethod">
|
||||
<dt id="kollacli.api.host.HostApi.host_remove">
|
||||
<tt class="descname">host_remove</tt><big>(</big><em>hostnames</em><big>)</big><a class="reference internal" href="_modules/kollacli/api/host.html#HostApi.host_remove"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#kollacli.api.host.HostApi.host_remove" title="Permalink to this definition">¶</a></dt>
|
||||
<em class="property">static </em><tt class="descname">host_remove</tt><big>(</big><em>hostnames</em><big>)</big><a class="reference internal" href="_modules/kollacli/api/host.html#HostApi.host_remove"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#kollacli.api.host.HostApi.host_remove" title="Permalink to this definition">¶</a></dt>
|
||||
<dd><p>Remove hosts from the inventory</p>
|
||||
<table class="docutils field-list" frame="void" rules="none">
|
||||
<col class="field-name" />
|
||||
@ -611,9 +596,9 @@ changes.</p>
|
||||
</table>
|
||||
</dd></dl>
|
||||
|
||||
<dl class="method">
|
||||
<dl class="staticmethod">
|
||||
<dt id="kollacli.api.host.HostApi.host_setup">
|
||||
<tt class="descname">host_setup</tt><big>(</big><em>hosts_info</em><big>)</big><a class="reference internal" href="_modules/kollacli/api/host.html#HostApi.host_setup"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#kollacli.api.host.HostApi.host_setup" title="Permalink to this definition">¶</a></dt>
|
||||
<em class="property">static </em><tt class="descname">host_setup</tt><big>(</big><em>hosts_info</em><big>)</big><a class="reference internal" href="_modules/kollacli/api/host.html#HostApi.host_setup"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#kollacli.api.host.HostApi.host_setup" title="Permalink to this definition">¶</a></dt>
|
||||
<dd><p>Setup multiple hosts for ssh access</p>
|
||||
<dl class="docutils">
|
||||
<dt>hosts_info is a dictionary of form:</dt>
|
||||
@ -637,9 +622,9 @@ changes.</p>
|
||||
</table>
|
||||
</dd></dl>
|
||||
|
||||
<dl class="method">
|
||||
<dl class="staticmethod">
|
||||
<dt id="kollacli.api.host.HostApi.host_ssh_check">
|
||||
<tt class="descname">host_ssh_check</tt><big>(</big><em>hostnames</em><big>)</big><a class="reference internal" href="_modules/kollacli/api/host.html#HostApi.host_ssh_check"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#kollacli.api.host.HostApi.host_ssh_check" title="Permalink to this definition">¶</a></dt>
|
||||
<em class="property">static </em><tt class="descname">host_ssh_check</tt><big>(</big><em>hostnames</em><big>)</big><a class="reference internal" href="_modules/kollacli/api/host.html#HostApi.host_ssh_check"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#kollacli.api.host.HostApi.host_ssh_check" title="Permalink to this definition">¶</a></dt>
|
||||
<dd><p>Check hosts for ssh connectivity</p>
|
||||
<dl class="docutils">
|
||||
<dt>Check status is a dictionary of form:</dt>
|
||||
@ -666,6 +651,31 @@ changes.</p>
|
||||
</table>
|
||||
</dd></dl>
|
||||
|
||||
<dl class="staticmethod">
|
||||
<dt id="kollacli.api.host.HostApi.host_stop">
|
||||
<em class="property">static </em><tt class="descname">host_stop</tt><big>(</big><em>hostnames</em>, <em>verbose_level=1</em><big>)</big><a class="reference internal" href="_modules/kollacli/api/host.html#HostApi.host_stop"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#kollacli.api.host.HostApi.host_stop" title="Permalink to this definition">¶</a></dt>
|
||||
<dd><p>Stop Hosts.</p>
|
||||
<p>Stops all kolla related docker containers on the specified hosts.</p>
|
||||
<table class="docutils field-list" frame="void" rules="none">
|
||||
<col class="field-name" />
|
||||
<col class="field-body" />
|
||||
<tbody valign="top">
|
||||
<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first simple">
|
||||
<li><strong>hostnames</strong> (<em>list</em>) – host names</li>
|
||||
<li><strong>verbose_level</strong> (<em>integer</em>) – the higher the number, the more verbose</li>
|
||||
</ul>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body"><p class="first">Job object</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="field-odd field"><th class="field-name">Return type:</th><td class="field-body"><p class="first last">Job</p>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</dd></dl>
|
||||
|
||||
</dd></dl>
|
||||
|
||||
</div>
|
||||
@ -847,7 +857,7 @@ to auto-generated values</p>
|
||||
<dt>Members:</dt>
|
||||
<dd><ul class="first last simple">
|
||||
<li>name (str): key</li>
|
||||
<li>value (str): value</li>
|
||||
<li>value (Any): value</li>
|
||||
<li>file_name (str): name of file property is from</li>
|
||||
<li>overrides (bool): does the property override some other value</li>
|
||||
<li>orig_value (str): the value which is overridden or None</li>
|
||||
@ -856,6 +866,7 @@ to auto-generated values</p>
|
||||
<li>ovr_global (bool): true if property is overridden at global level</li>
|
||||
<li>ovr_group (bool): true if property is overridden at group level</li>
|
||||
<li>ovr_host (bool): true if property is overridden at host level</li>
|
||||
<li>value_type (type): the python type of the value</li>
|
||||
</ul>
|
||||
</dd>
|
||||
</dl>
|
||||
@ -937,17 +948,17 @@ or hosts to set the property for</li>
|
||||
<span id="kollacli-api-service-module"></span><h2>kollacli.api.service module<a class="headerlink" href="#module-kollacli.api.service" title="Permalink to this headline">¶</a></h2>
|
||||
<dl class="class">
|
||||
<dt id="kollacli.api.service.Service">
|
||||
<em class="property">class </em><tt class="descclassname">kollacli.api.service.</tt><tt class="descname">Service</tt><big>(</big><em>servicename</em>, <em>parentname=None</em>, <em>childnames=[]</em>, <em>groupnames=[]</em><big>)</big><a class="reference internal" href="_modules/kollacli/api/service.html#Service"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#kollacli.api.service.Service" title="Permalink to this definition">¶</a></dt>
|
||||
<em class="property">class </em><tt class="descclassname">kollacli.api.service.</tt><tt class="descname">Service</tt><big>(</big><em>servicename</em>, <em>parentnames=[]</em>, <em>childnames=[]</em>, <em>groupnames=[]</em><big>)</big><a class="reference internal" href="_modules/kollacli/api/service.html#Service"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#kollacli.api.service.Service" title="Permalink to this definition">¶</a></dt>
|
||||
<dd><p>Bases: <tt class="xref py py-class docutils literal"><span class="pre">object</span></tt></p>
|
||||
<p>Service</p>
|
||||
<p>A service is one of the services available in openstack-kolla.</p>
|
||||
<p>A service is one of the services available in openstack-kolla-ansible.</p>
|
||||
<p>For example, this would be how the murano services would be
|
||||
represented:</p>
|
||||
<ul class="simple">
|
||||
<li><dl class="first docutils">
|
||||
<dt>murano</dt>
|
||||
<dd><ul class="first last">
|
||||
<li>parentname: None</li>
|
||||
<li>parentnames: []</li>
|
||||
<li>childnames: [murano-api, murano-engine]</li>
|
||||
</ul>
|
||||
</dd>
|
||||
@ -956,7 +967,7 @@ represented:</p>
|
||||
<li><dl class="first docutils">
|
||||
<dt>murano-api</dt>
|
||||
<dd><ul class="first last">
|
||||
<li>parentname: murano</li>
|
||||
<li>parentnames: [murano]</li>
|
||||
<li>childnames: []</li>
|
||||
</ul>
|
||||
</dd>
|
||||
@ -965,7 +976,7 @@ represented:</p>
|
||||
<li><dl class="first docutils">
|
||||
<dt>murano-engine</dt>
|
||||
<dd><ul class="first last">
|
||||
<li>parentname: murano</li>
|
||||
<li>parentnames: [murano]</li>
|
||||
<li>childnames: []</li>
|
||||
</ul>
|
||||
</dd>
|
||||
@ -975,7 +986,7 @@ represented:</p>
|
||||
<dl class="method">
|
||||
<dt id="kollacli.api.service.Service.get_children">
|
||||
<tt class="descname">get_children</tt><big>(</big><big>)</big><a class="reference internal" href="_modules/kollacli/api/service.html#Service.get_children"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#kollacli.api.service.Service.get_children" title="Permalink to this definition">¶</a></dt>
|
||||
<dd><p>Get names of the child services associated with this service</p>
|
||||
<dd><p>Get names of the child services</p>
|
||||
<table class="docutils field-list" frame="void" rules="none">
|
||||
<col class="field-name" />
|
||||
<col class="field-body" />
|
||||
@ -991,7 +1002,7 @@ represented:</p>
|
||||
<dl class="method">
|
||||
<dt id="kollacli.api.service.Service.get_groups">
|
||||
<tt class="descname">get_groups</tt><big>(</big><big>)</big><a class="reference internal" href="_modules/kollacli/api/service.html#Service.get_groups"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#kollacli.api.service.Service.get_groups" title="Permalink to this definition">¶</a></dt>
|
||||
<dd><p>Get names of the groups associated with this service</p>
|
||||
<dd><p>Get names of the groups</p>
|
||||
<table class="docutils field-list" frame="void" rules="none">
|
||||
<col class="field-name" />
|
||||
<col class="field-body" />
|
||||
@ -1024,14 +1035,14 @@ changes.</p>
|
||||
</dd></dl>
|
||||
|
||||
<dl class="method">
|
||||
<dt id="kollacli.api.service.Service.get_parent">
|
||||
<tt class="descname">get_parent</tt><big>(</big><big>)</big><a class="reference internal" href="_modules/kollacli/api/service.html#Service.get_parent"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#kollacli.api.service.Service.get_parent" title="Permalink to this definition">¶</a></dt>
|
||||
<dd><p>Get name of parent service</p>
|
||||
<dt id="kollacli.api.service.Service.get_parents">
|
||||
<tt class="descname">get_parents</tt><big>(</big><big>)</big><a class="reference internal" href="_modules/kollacli/api/service.html#Service.get_parents"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#kollacli.api.service.Service.get_parents" title="Permalink to this definition">¶</a></dt>
|
||||
<dd><p>Get name of parent services</p>
|
||||
<table class="docutils field-list" frame="void" rules="none">
|
||||
<col class="field-name" />
|
||||
<col class="field-body" />
|
||||
<tbody valign="top">
|
||||
<tr class="field-odd field"><th class="field-name">Returns:</th><td class="field-body">parent service name</td>
|
||||
<tr class="field-odd field"><th class="field-name">Returns:</th><td class="field-body">parent service names</td>
|
||||
</tr>
|
||||
<tr class="field-even field"><th class="field-name">Return type:</th><td class="field-body">string</td>
|
||||
</tr>
|
||||
@ -1150,9 +1161,8 @@ names for each log will be servicename_id.log.</p>
|
||||
<ul>
|
||||
<li><a class="reference internal" href="#">kollacli.api package</a><ul>
|
||||
<li><a class="reference internal" href="#submodules">Submodules</a></li>
|
||||
<li><a class="reference internal" href="#module-kollacli.api.async">kollacli.api.async module</a></li>
|
||||
<li><a class="reference internal" href="#module-kollacli.api.client">kollacli.api.client module</a></li>
|
||||
<li><a class="reference internal" href="#module-kollacli.api.deploy">kollacli.api.deploy module</a></li>
|
||||
<li><a class="reference internal" href="#module-kollacli.api.control_plane">kollacli.api.control_plane module</a></li>
|
||||
<li><a class="reference internal" href="#module-kollacli.api.exceptions">kollacli.api.exceptions module</a></li>
|
||||
<li><a class="reference internal" href="#module-kollacli.api.group">kollacli.api.group module</a></li>
|
||||
<li><a class="reference internal" href="#module-kollacli.api.host">kollacli.api.host module</a></li>
|
||||
@ -1197,7 +1207,7 @@ names for each log will be servicename_id.log.</p>
|
||||
<li class="right" >
|
||||
<a href="py-modindex.html" title="Python Module Index"
|
||||
>modules</a> |</li>
|
||||
<li><a href="index.html">kollacli 4.0.0.dev483 documentation</a> »</li>
|
||||
<li><a href="index.html">kollacli 4.0.1.dev498 documentation</a> »</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="footer">
|
||||
|
53
doc/build/html/kollacli.commands.html
vendored
53
doc/build/html/kollacli.commands.html
vendored
@ -6,7 +6,7 @@
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
|
||||
<title>kollacli.commands package — kollacli 4.0.0.dev483 documentation</title>
|
||||
<title>kollacli.commands package — kollacli 4.0.1.dev498 documentation</title>
|
||||
|
||||
<link rel="stylesheet" href="_static/default.css" type="text/css" />
|
||||
<link rel="stylesheet" href="_static/pygments.css" type="text/css" />
|
||||
@ -14,7 +14,7 @@
|
||||
<script type="text/javascript">
|
||||
var DOCUMENTATION_OPTIONS = {
|
||||
URL_ROOT: './',
|
||||
VERSION: '4.0.0.dev483',
|
||||
VERSION: '4.0.1.dev498',
|
||||
COLLAPSE_INDEX: false,
|
||||
FILE_SUFFIX: '.html',
|
||||
HAS_SOURCE: true
|
||||
@ -23,7 +23,7 @@
|
||||
<script type="text/javascript" src="_static/jquery.js"></script>
|
||||
<script type="text/javascript" src="_static/underscore.js"></script>
|
||||
<script type="text/javascript" src="_static/doctools.js"></script>
|
||||
<link rel="top" title="kollacli 4.0.0.dev483 documentation" href="index.html" />
|
||||
<link rel="top" title="kollacli 4.0.1.dev498 documentation" href="index.html" />
|
||||
</head>
|
||||
<body>
|
||||
<div class="related">
|
||||
@ -35,7 +35,7 @@
|
||||
<li class="right" >
|
||||
<a href="py-modindex.html" title="Python Module Index"
|
||||
>modules</a> |</li>
|
||||
<li><a href="index.html">kollacli 4.0.0.dev483 documentation</a> »</li>
|
||||
<li><a href="index.html">kollacli 4.0.1.dev498 documentation</a> »</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
@ -55,7 +55,7 @@
|
||||
<dt id="kollacli.commands.deploy.Deploy">
|
||||
<em class="property">class </em><tt class="descclassname">kollacli.commands.deploy.</tt><tt class="descname">Deploy</tt><big>(</big><em>app</em>, <em>app_args</em>, <em>cmd_name=None</em><big>)</big><a class="reference internal" href="_modules/kollacli/commands/deploy.html#Deploy"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#kollacli.commands.deploy.Deploy" title="Permalink to this definition">¶</a></dt>
|
||||
<dd><p>Bases: <tt class="xref py py-class docutils literal"><span class="pre">cliff.command.Command</span></tt></p>
|
||||
<p>Deploy.</p>
|
||||
<p>Deploy containers to hosts.</p>
|
||||
<dl class="method">
|
||||
<dt id="kollacli.commands.deploy.Deploy.get_parser">
|
||||
<tt class="descname">get_parser</tt><big>(</big><em>prog_name</em><big>)</big><a class="reference internal" href="_modules/kollacli/commands/deploy.html#Deploy.get_parser"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#kollacli.commands.deploy.Deploy.get_parser" title="Permalink to this definition">¶</a></dt>
|
||||
@ -269,7 +269,7 @@ Remote means that the deployment is on remote hosts.</p>
|
||||
<dt id="kollacli.commands.host.HostDestroy">
|
||||
<em class="property">class </em><tt class="descclassname">kollacli.commands.host.</tt><tt class="descname">HostDestroy</tt><big>(</big><em>app</em>, <em>app_args</em>, <em>cmd_name=None</em><big>)</big><a class="reference internal" href="_modules/kollacli/commands/host.html#HostDestroy"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#kollacli.commands.host.HostDestroy" title="Permalink to this definition">¶</a></dt>
|
||||
<dd><p>Bases: <tt class="xref py py-class docutils literal"><span class="pre">cliff.command.Command</span></tt></p>
|
||||
<p>Destroy.</p>
|
||||
<p>Destroy all kolla containers on host(s).</p>
|
||||
<p>Stops and removes all kolla related docker containers on either the
|
||||
specified host or all hosts if the hostname all is used.</p>
|
||||
<dl class="method">
|
||||
@ -340,7 +340,7 @@ specified host or all hosts if the hostname all is used.</p>
|
||||
<dt id="kollacli.commands.host.HostStop">
|
||||
<em class="property">class </em><tt class="descclassname">kollacli.commands.host.</tt><tt class="descname">HostStop</tt><big>(</big><em>app</em>, <em>app_args</em>, <em>cmd_name=None</em><big>)</big><a class="reference internal" href="_modules/kollacli/commands/host.html#HostStop"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#kollacli.commands.host.HostStop" title="Permalink to this definition">¶</a></dt>
|
||||
<dd><p>Bases: <tt class="xref py py-class docutils literal"><span class="pre">cliff.command.Command</span></tt></p>
|
||||
<p>Stop.</p>
|
||||
<p>Stop all kolla containers on host(s).</p>
|
||||
<p>Stops all kolla related docker containers on either the
|
||||
specified host or all hosts if the hostname all is used.</p>
|
||||
<dl class="method">
|
||||
@ -487,6 +487,41 @@ specified host or all hosts if the hostname all is used.</p>
|
||||
|
||||
</dd></dl>
|
||||
|
||||
</div>
|
||||
<div class="section" id="module-kollacli.commands.pull">
|
||||
<span id="kollacli-commands-pull-module"></span><h2>kollacli.commands.pull module<a class="headerlink" href="#module-kollacli.commands.pull" title="Permalink to this headline">¶</a></h2>
|
||||
<dl class="class">
|
||||
<dt id="kollacli.commands.pull.Pull">
|
||||
<em class="property">class </em><tt class="descclassname">kollacli.commands.pull.</tt><tt class="descname">Pull</tt><big>(</big><em>app</em>, <em>app_args</em>, <em>cmd_name=None</em><big>)</big><a class="reference internal" href="_modules/kollacli/commands/pull.html#Pull"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#kollacli.commands.pull.Pull" title="Permalink to this definition">¶</a></dt>
|
||||
<dd><p>Bases: <tt class="xref py py-class docutils literal"><span class="pre">cliff.command.Command</span></tt></p>
|
||||
<p>Pull enabled service images onto appropriate hosts.</p>
|
||||
<dl class="method">
|
||||
<dt id="kollacli.commands.pull.Pull.take_action">
|
||||
<tt class="descname">take_action</tt><big>(</big><em>parsed_args</em><big>)</big><a class="reference internal" href="_modules/kollacli/commands/pull.html#Pull.take_action"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#kollacli.commands.pull.Pull.take_action" title="Permalink to this definition">¶</a></dt>
|
||||
<dd></dd></dl>
|
||||
|
||||
</dd></dl>
|
||||
|
||||
</div>
|
||||
<div class="section" id="module-kollacli.commands.reconfigure">
|
||||
<span id="kollacli-commands-reconfigure-module"></span><h2>kollacli.commands.reconfigure module<a class="headerlink" href="#module-kollacli.commands.reconfigure" title="Permalink to this headline">¶</a></h2>
|
||||
<dl class="class">
|
||||
<dt id="kollacli.commands.reconfigure.Reconfigure">
|
||||
<em class="property">class </em><tt class="descclassname">kollacli.commands.reconfigure.</tt><tt class="descname">Reconfigure</tt><big>(</big><em>app</em>, <em>app_args</em>, <em>cmd_name=None</em><big>)</big><a class="reference internal" href="_modules/kollacli/commands/reconfigure.html#Reconfigure"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#kollacli.commands.reconfigure.Reconfigure" title="Permalink to this definition">¶</a></dt>
|
||||
<dd><p>Bases: <tt class="xref py py-class docutils literal"><span class="pre">cliff.command.Command</span></tt></p>
|
||||
<p>Reconfigure and update kolla containers on all hosts.</p>
|
||||
<dl class="method">
|
||||
<dt id="kollacli.commands.reconfigure.Reconfigure.get_parser">
|
||||
<tt class="descname">get_parser</tt><big>(</big><em>prog_name</em><big>)</big><a class="reference internal" href="_modules/kollacli/commands/reconfigure.html#Reconfigure.get_parser"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#kollacli.commands.reconfigure.Reconfigure.get_parser" title="Permalink to this definition">¶</a></dt>
|
||||
<dd></dd></dl>
|
||||
|
||||
<dl class="method">
|
||||
<dt id="kollacli.commands.reconfigure.Reconfigure.take_action">
|
||||
<tt class="descname">take_action</tt><big>(</big><em>parsed_args</em><big>)</big><a class="reference internal" href="_modules/kollacli/commands/reconfigure.html#Reconfigure.take_action"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#kollacli.commands.reconfigure.Reconfigure.take_action" title="Permalink to this definition">¶</a></dt>
|
||||
<dd></dd></dl>
|
||||
|
||||
</dd></dl>
|
||||
|
||||
</div>
|
||||
<div class="section" id="module-kollacli.commands.service">
|
||||
<span id="kollacli-commands-service-module"></span><h2>kollacli.commands.service module<a class="headerlink" href="#module-kollacli.commands.service" title="Permalink to this headline">¶</a></h2>
|
||||
@ -610,6 +645,8 @@ debugging problems.</p>
|
||||
<li><a class="reference internal" href="#module-kollacli.commands.host">kollacli.commands.host module</a></li>
|
||||
<li><a class="reference internal" href="#module-kollacli.commands.password">kollacli.commands.password module</a></li>
|
||||
<li><a class="reference internal" href="#module-kollacli.commands.property">kollacli.commands.property module</a></li>
|
||||
<li><a class="reference internal" href="#module-kollacli.commands.pull">kollacli.commands.pull module</a></li>
|
||||
<li><a class="reference internal" href="#module-kollacli.commands.reconfigure">kollacli.commands.reconfigure module</a></li>
|
||||
<li><a class="reference internal" href="#module-kollacli.commands.service">kollacli.commands.service module</a></li>
|
||||
<li><a class="reference internal" href="#module-kollacli.commands.support">kollacli.commands.support module</a></li>
|
||||
<li><a class="reference internal" href="#module-kollacli.commands.upgrade">kollacli.commands.upgrade module</a></li>
|
||||
@ -649,7 +686,7 @@ debugging problems.</p>
|
||||
<li class="right" >
|
||||
<a href="py-modindex.html" title="Python Module Index"
|
||||
>modules</a> |</li>
|
||||
<li><a href="index.html">kollacli 4.0.0.dev483 documentation</a> »</li>
|
||||
<li><a href="index.html">kollacli 4.0.1.dev498 documentation</a> »</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="footer">
|
||||
|
16
doc/build/html/kollacli.common.ansible.html
vendored
16
doc/build/html/kollacli.common.ansible.html
vendored
@ -6,7 +6,7 @@
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
|
||||
<title>kollacli.common.ansible package — kollacli 4.0.0.dev483 documentation</title>
|
||||
<title>kollacli.common.ansible package — kollacli 4.0.1.dev498 documentation</title>
|
||||
|
||||
<link rel="stylesheet" href="_static/default.css" type="text/css" />
|
||||
<link rel="stylesheet" href="_static/pygments.css" type="text/css" />
|
||||
@ -14,7 +14,7 @@
|
||||
<script type="text/javascript">
|
||||
var DOCUMENTATION_OPTIONS = {
|
||||
URL_ROOT: './',
|
||||
VERSION: '4.0.0.dev483',
|
||||
VERSION: '4.0.1.dev498',
|
||||
COLLAPSE_INDEX: false,
|
||||
FILE_SUFFIX: '.html',
|
||||
HAS_SOURCE: true
|
||||
@ -23,7 +23,7 @@
|
||||
<script type="text/javascript" src="_static/jquery.js"></script>
|
||||
<script type="text/javascript" src="_static/underscore.js"></script>
|
||||
<script type="text/javascript" src="_static/doctools.js"></script>
|
||||
<link rel="top" title="kollacli 4.0.0.dev483 documentation" href="index.html" />
|
||||
<link rel="top" title="kollacli 4.0.1.dev498 documentation" href="index.html" />
|
||||
</head>
|
||||
<body>
|
||||
<div class="related">
|
||||
@ -35,7 +35,7 @@
|
||||
<li class="right" >
|
||||
<a href="py-modindex.html" title="Python Module Index"
|
||||
>modules</a> |</li>
|
||||
<li><a href="index.html">kollacli 4.0.0.dev483 documentation</a> »</li>
|
||||
<li><a href="index.html">kollacli 4.0.1.dev498 documentation</a> »</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
@ -70,6 +70,12 @@ or killed.</p>
|
||||
<dd><p>run check playbooks on a set of hosts</p>
|
||||
</dd></dl>
|
||||
|
||||
<dl class="function">
|
||||
<dt id="kollacli.common.ansible.actions.pull">
|
||||
<tt class="descclassname">kollacli.common.ansible.actions.</tt><tt class="descname">pull</tt><big>(</big><em>verbose_level=1</em><big>)</big><a class="reference internal" href="_modules/kollacli/common/ansible/actions.html#pull"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#kollacli.common.ansible.actions.pull" title="Permalink to this definition">¶</a></dt>
|
||||
<dd><p>run pull action against all hosts</p>
|
||||
</dd></dl>
|
||||
|
||||
<dl class="function">
|
||||
<dt id="kollacli.common.ansible.actions.reconfigure">
|
||||
<tt class="descclassname">kollacli.common.ansible.actions.</tt><tt class="descname">reconfigure</tt><big>(</big><em>verbose_level=1</em><big>)</big><a class="reference internal" href="_modules/kollacli/common/ansible/actions.html#reconfigure"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#kollacli.common.ansible.actions.reconfigure" title="Permalink to this definition">¶</a></dt>
|
||||
@ -281,7 +287,7 @@ that is not killable. Need to kill all its children.</p>
|
||||
<li class="right" >
|
||||
<a href="py-modindex.html" title="Python Module Index"
|
||||
>modules</a> |</li>
|
||||
<li><a href="index.html">kollacli 4.0.0.dev483 documentation</a> »</li>
|
||||
<li><a href="index.html">kollacli 4.0.1.dev498 documentation</a> »</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="footer">
|
||||
|
107
doc/build/html/kollacli.common.html
vendored
107
doc/build/html/kollacli.common.html
vendored
@ -6,7 +6,7 @@
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
|
||||
<title>kollacli.common package — kollacli 4.0.0.dev483 documentation</title>
|
||||
<title>kollacli.common package — kollacli 4.0.1.dev498 documentation</title>
|
||||
|
||||
<link rel="stylesheet" href="_static/default.css" type="text/css" />
|
||||
<link rel="stylesheet" href="_static/pygments.css" type="text/css" />
|
||||
@ -14,7 +14,7 @@
|
||||
<script type="text/javascript">
|
||||
var DOCUMENTATION_OPTIONS = {
|
||||
URL_ROOT: './',
|
||||
VERSION: '4.0.0.dev483',
|
||||
VERSION: '4.0.1.dev498',
|
||||
COLLAPSE_INDEX: false,
|
||||
FILE_SUFFIX: '.html',
|
||||
HAS_SOURCE: true
|
||||
@ -23,7 +23,7 @@
|
||||
<script type="text/javascript" src="_static/jquery.js"></script>
|
||||
<script type="text/javascript" src="_static/underscore.js"></script>
|
||||
<script type="text/javascript" src="_static/doctools.js"></script>
|
||||
<link rel="top" title="kollacli 4.0.0.dev483 documentation" href="index.html" />
|
||||
<link rel="top" title="kollacli 4.0.1.dev498 documentation" href="index.html" />
|
||||
</head>
|
||||
<body>
|
||||
<div class="related">
|
||||
@ -35,7 +35,7 @@
|
||||
<li class="right" >
|
||||
<a href="py-modindex.html" title="Python Module Index"
|
||||
>modules</a> |</li>
|
||||
<li><a href="index.html">kollacli 4.0.0.dev483 documentation</a> »</li>
|
||||
<li><a href="index.html">kollacli 4.0.1.dev498 documentation</a> »</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
@ -83,11 +83,6 @@ easier to use way to represent that file.</p>
|
||||
<tt class="descname">add_service</tt><big>(</big><em>servicename</em><big>)</big><a class="reference internal" href="_modules/kollacli/common/allinone.html#AllInOne.add_service"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#kollacli.common.allinone.AllInOne.add_service" title="Permalink to this definition">¶</a></dt>
|
||||
<dd></dd></dl>
|
||||
|
||||
<dl class="method">
|
||||
<dt id="kollacli.common.allinone.AllInOne.add_sub_service">
|
||||
<tt class="descname">add_sub_service</tt><big>(</big><em>sub_servicename</em><big>)</big><a class="reference internal" href="_modules/kollacli/common/allinone.html#AllInOne.add_sub_service"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#kollacli.common.allinone.AllInOne.add_sub_service" title="Permalink to this definition">¶</a></dt>
|
||||
<dd></dd></dl>
|
||||
|
||||
</dd></dl>
|
||||
|
||||
</div>
|
||||
@ -200,9 +195,14 @@ if group name is not none, add host to group</p>
|
||||
|
||||
<dl class="attribute">
|
||||
<dt id="kollacli.common.inventory.Inventory.class_version">
|
||||
<tt class="descname">class_version</tt><em class="property"> = 3</em><a class="headerlink" href="#kollacli.common.inventory.Inventory.class_version" title="Permalink to this definition">¶</a></dt>
|
||||
<tt class="descname">class_version</tt><em class="property"> = 4</em><a class="headerlink" href="#kollacli.common.inventory.Inventory.class_version" title="Permalink to this definition">¶</a></dt>
|
||||
<dd><p>class version history</p>
|
||||
<dl class="docutils">
|
||||
<dt>4: (v4.0.1):</dt>
|
||||
<dd><ul class="first last simple">
|
||||
<li>removed concept of sub-services (not backward compatible)</li>
|
||||
</ul>
|
||||
</dd>
|
||||
<dt>3: (v3.0.1):</dt>
|
||||
<dd><ul class="first last simple">
|
||||
<li>added aodh, ceph</li>
|
||||
@ -229,21 +229,11 @@ where uuid is a unique deployment id.</p>
|
||||
<tt class="descname">create_service</tt><big>(</big><em>servicename</em><big>)</big><a class="reference internal" href="_modules/kollacli/common/inventory.html#Inventory.create_service"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#kollacli.common.inventory.Inventory.create_service" title="Permalink to this definition">¶</a></dt>
|
||||
<dd></dd></dl>
|
||||
|
||||
<dl class="method">
|
||||
<dt id="kollacli.common.inventory.Inventory.create_sub_service">
|
||||
<tt class="descname">create_sub_service</tt><big>(</big><em>sub_servicename</em><big>)</big><a class="reference internal" href="_modules/kollacli/common/inventory.html#Inventory.create_sub_service"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#kollacli.common.inventory.Inventory.create_sub_service" title="Permalink to this definition">¶</a></dt>
|
||||
<dd></dd></dl>
|
||||
|
||||
<dl class="method">
|
||||
<dt id="kollacli.common.inventory.Inventory.delete_service">
|
||||
<tt class="descname">delete_service</tt><big>(</big><em>servicename</em><big>)</big><a class="reference internal" href="_modules/kollacli/common/inventory.html#Inventory.delete_service"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#kollacli.common.inventory.Inventory.delete_service" title="Permalink to this definition">¶</a></dt>
|
||||
<dd></dd></dl>
|
||||
|
||||
<dl class="method">
|
||||
<dt id="kollacli.common.inventory.Inventory.delete_sub_service">
|
||||
<tt class="descname">delete_sub_service</tt><big>(</big><em>sub_servicename</em><big>)</big><a class="reference internal" href="_modules/kollacli/common/inventory.html#Inventory.delete_sub_service"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#kollacli.common.inventory.Inventory.delete_sub_service" title="Permalink to this definition">¶</a></dt>
|
||||
<dd></dd></dl>
|
||||
|
||||
<dl class="method">
|
||||
<dt id="kollacli.common.inventory.Inventory.get_ansible_json">
|
||||
<tt class="descname">get_ansible_json</tt><big>(</big><em>inventory_filter=None</em><big>)</big><a class="reference internal" href="_modules/kollacli/common/inventory.html#Inventory.get_ansible_json"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#kollacli.common.inventory.Inventory.get_ansible_json" title="Permalink to this definition">¶</a></dt>
|
||||
@ -347,29 +337,12 @@ groups.</p>
|
||||
|
||||
<dl class="method">
|
||||
<dt id="kollacli.common.inventory.Inventory.get_service">
|
||||
<tt class="descname">get_service</tt><big>(</big><em>servicename</em><big>)</big><a class="reference internal" href="_modules/kollacli/common/inventory.html#Inventory.get_service"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#kollacli.common.inventory.Inventory.get_service" title="Permalink to this definition">¶</a></dt>
|
||||
<tt class="descname">get_service</tt><big>(</big><em>servicename</em>, <em>client_filter=False</em><big>)</big><a class="reference internal" href="_modules/kollacli/common/inventory.html#Inventory.get_service"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#kollacli.common.inventory.Inventory.get_service" title="Permalink to this definition">¶</a></dt>
|
||||
<dd></dd></dl>
|
||||
|
||||
<dl class="method">
|
||||
<dt id="kollacli.common.inventory.Inventory.get_service_sub_services">
|
||||
<tt class="descname">get_service_sub_services</tt><big>(</big><big>)</big><a class="reference internal" href="_modules/kollacli/common/inventory.html#Inventory.get_service_sub_services"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#kollacli.common.inventory.Inventory.get_service_sub_services" title="Permalink to this definition">¶</a></dt>
|
||||
<dd><p>get services and their sub_services</p>
|
||||
<p>return { servicename: [sub_servicenames] }</p>
|
||||
</dd></dl>
|
||||
|
||||
<dl class="method">
|
||||
<dt id="kollacli.common.inventory.Inventory.get_services">
|
||||
<tt class="descname">get_services</tt><big>(</big><big>)</big><a class="reference internal" href="_modules/kollacli/common/inventory.html#Inventory.get_services"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#kollacli.common.inventory.Inventory.get_services" title="Permalink to this definition">¶</a></dt>
|
||||
<dd></dd></dl>
|
||||
|
||||
<dl class="method">
|
||||
<dt id="kollacli.common.inventory.Inventory.get_sub_service">
|
||||
<tt class="descname">get_sub_service</tt><big>(</big><em>sub_servicename</em><big>)</big><a class="reference internal" href="_modules/kollacli/common/inventory.html#Inventory.get_sub_service"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#kollacli.common.inventory.Inventory.get_sub_service" title="Permalink to this definition">¶</a></dt>
|
||||
<dd></dd></dl>
|
||||
|
||||
<dl class="method">
|
||||
<dt id="kollacli.common.inventory.Inventory.get_sub_services">
|
||||
<tt class="descname">get_sub_services</tt><big>(</big><big>)</big><a class="reference internal" href="_modules/kollacli/common/inventory.html#Inventory.get_sub_services"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#kollacli.common.inventory.Inventory.get_sub_services" title="Permalink to this definition">¶</a></dt>
|
||||
<tt class="descname">get_services</tt><big>(</big><em>client_filter=False</em><big>)</big><a class="reference internal" href="_modules/kollacli/common/inventory.html#Inventory.get_services"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#kollacli.common.inventory.Inventory.get_services" title="Permalink to this definition">¶</a></dt>
|
||||
<dd></dd></dl>
|
||||
|
||||
<dl class="staticmethod">
|
||||
@ -474,7 +447,7 @@ The uname entry is optional.</p>
|
||||
|
||||
<dl class="method">
|
||||
<dt id="kollacli.common.inventory.Inventory.validate_servicenames">
|
||||
<tt class="descname">validate_servicenames</tt><big>(</big><em>servicenames</em><big>)</big><a class="reference internal" href="_modules/kollacli/common/inventory.html#Inventory.validate_servicenames"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#kollacli.common.inventory.Inventory.validate_servicenames" title="Permalink to this definition">¶</a></dt>
|
||||
<tt class="descname">validate_servicenames</tt><big>(</big><em>servicenames</em>, <em>client_filter=False</em><big>)</big><a class="reference internal" href="_modules/kollacli/common/inventory.html#Inventory.validate_servicenames"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#kollacli.common.inventory.Inventory.validate_servicenames" title="Permalink to this definition">¶</a></dt>
|
||||
<dd></dd></dl>
|
||||
|
||||
</dd></dl>
|
||||
@ -546,11 +519,6 @@ If it doesn’t exist, a new password will be added.</p>
|
||||
<tt class="descname">clear_property</tt><big>(</big><em>property_list</em><big>)</big><a class="reference internal" href="_modules/kollacli/common/properties.html#AnsibleProperties.clear_property"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#kollacli.common.properties.AnsibleProperties.clear_property" title="Permalink to this definition">¶</a></dt>
|
||||
<dd></dd></dl>
|
||||
|
||||
<dl class="method">
|
||||
<dt id="kollacli.common.properties.AnsibleProperties.filter_jinja2">
|
||||
<tt class="descname">filter_jinja2</tt><big>(</big><em>contents</em><big>)</big><a class="reference internal" href="_modules/kollacli/common/properties.html#AnsibleProperties.filter_jinja2"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#kollacli.common.properties.AnsibleProperties.filter_jinja2" title="Permalink to this definition">¶</a></dt>
|
||||
<dd></dd></dl>
|
||||
|
||||
<dl class="method">
|
||||
<dt id="kollacli.common.properties.AnsibleProperties.get_all_override_flags">
|
||||
<tt class="descname">get_all_override_flags</tt><big>(</big><big>)</big><a class="reference internal" href="_modules/kollacli/common/properties.html#AnsibleProperties.get_all_override_flags"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#kollacli.common.properties.AnsibleProperties.get_all_override_flags" title="Permalink to this definition">¶</a></dt>
|
||||
@ -576,6 +544,11 @@ If it doesn’t exist, a new password will be added.</p>
|
||||
<tt class="descname">get_property</tt><big>(</big><em>property_name</em><big>)</big><a class="reference internal" href="_modules/kollacli/common/properties.html#AnsibleProperties.get_property"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#kollacli.common.properties.AnsibleProperties.get_property" title="Permalink to this definition">¶</a></dt>
|
||||
<dd></dd></dl>
|
||||
|
||||
<dl class="method">
|
||||
<dt id="kollacli.common.properties.AnsibleProperties.get_property_value">
|
||||
<tt class="descname">get_property_value</tt><big>(</big><em>property_name</em><big>)</big><a class="reference internal" href="_modules/kollacli/common/properties.html#AnsibleProperties.get_property_value"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#kollacli.common.properties.AnsibleProperties.get_property_value" title="Permalink to this definition">¶</a></dt>
|
||||
<dd></dd></dl>
|
||||
|
||||
<dl class="method">
|
||||
<dt id="kollacli.common.properties.AnsibleProperties.set_group_property">
|
||||
<tt class="descname">set_group_property</tt><big>(</big><em>property_dict</em>, <em>groups</em><big>)</big><a class="reference internal" href="_modules/kollacli/common/properties.html#AnsibleProperties.set_group_property"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#kollacli.common.properties.AnsibleProperties.set_group_property" title="Permalink to this definition">¶</a></dt>
|
||||
@ -612,14 +585,19 @@ If it doesn’t exist, a new password will be added.</p>
|
||||
<dt id="kollacli.common.service.Service">
|
||||
<em class="property">class </em><tt class="descclassname">kollacli.common.service.</tt><tt class="descname">Service</tt><big>(</big><em>name</em><big>)</big><a class="reference internal" href="_modules/kollacli/common/service.html#Service"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#kollacli.common.service.Service" title="Permalink to this definition">¶</a></dt>
|
||||
<dd><p>Bases: <tt class="xref py py-class docutils literal"><span class="pre">object</span></tt></p>
|
||||
<dl class="method">
|
||||
<dt id="kollacli.common.service.Service.add_childname">
|
||||
<tt class="descname">add_childname</tt><big>(</big><em>childname</em><big>)</big><a class="reference internal" href="_modules/kollacli/common/service.html#Service.add_childname"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#kollacli.common.service.Service.add_childname" title="Permalink to this definition">¶</a></dt>
|
||||
<dd></dd></dl>
|
||||
|
||||
<dl class="method">
|
||||
<dt id="kollacli.common.service.Service.add_groupname">
|
||||
<tt class="descname">add_groupname</tt><big>(</big><em>groupname</em><big>)</big><a class="reference internal" href="_modules/kollacli/common/service.html#Service.add_groupname"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#kollacli.common.service.Service.add_groupname" title="Permalink to this definition">¶</a></dt>
|
||||
<dd></dd></dl>
|
||||
|
||||
<dl class="method">
|
||||
<dt id="kollacli.common.service.Service.add_sub_servicename">
|
||||
<tt class="descname">add_sub_servicename</tt><big>(</big><em>sub_servicename</em><big>)</big><a class="reference internal" href="_modules/kollacli/common/service.html#Service.add_sub_servicename"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#kollacli.common.service.Service.add_sub_servicename" title="Permalink to this definition">¶</a></dt>
|
||||
<dt id="kollacli.common.service.Service.add_parentname">
|
||||
<tt class="descname">add_parentname</tt><big>(</big><em>parentname</em><big>)</big><a class="reference internal" href="_modules/kollacli/common/service.html#Service.add_parentname"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#kollacli.common.service.Service.add_parentname" title="Permalink to this definition">¶</a></dt>
|
||||
<dd></dd></dl>
|
||||
|
||||
<dl class="attribute">
|
||||
@ -627,14 +605,19 @@ If it doesn’t exist, a new password will be added.</p>
|
||||
<tt class="descname">class_version</tt><em class="property"> = 1</em><a class="headerlink" href="#kollacli.common.service.Service.class_version" title="Permalink to this definition">¶</a></dt>
|
||||
<dd></dd></dl>
|
||||
|
||||
<dl class="method">
|
||||
<dt id="kollacli.common.service.Service.get_childnames">
|
||||
<tt class="descname">get_childnames</tt><big>(</big><big>)</big><a class="reference internal" href="_modules/kollacli/common/service.html#Service.get_childnames"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#kollacli.common.service.Service.get_childnames" title="Permalink to this definition">¶</a></dt>
|
||||
<dd></dd></dl>
|
||||
|
||||
<dl class="method">
|
||||
<dt id="kollacli.common.service.Service.get_groupnames">
|
||||
<tt class="descname">get_groupnames</tt><big>(</big><big>)</big><a class="reference internal" href="_modules/kollacli/common/service.html#Service.get_groupnames"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#kollacli.common.service.Service.get_groupnames" title="Permalink to this definition">¶</a></dt>
|
||||
<dd></dd></dl>
|
||||
|
||||
<dl class="method">
|
||||
<dt id="kollacli.common.service.Service.get_sub_servicenames">
|
||||
<tt class="descname">get_sub_servicenames</tt><big>(</big><big>)</big><a class="reference internal" href="_modules/kollacli/common/service.html#Service.get_sub_servicenames"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#kollacli.common.service.Service.get_sub_servicenames" title="Permalink to this definition">¶</a></dt>
|
||||
<dt id="kollacli.common.service.Service.get_parentnames">
|
||||
<tt class="descname">get_parentnames</tt><big>(</big><big>)</big><a class="reference internal" href="_modules/kollacli/common/service.html#Service.get_parentnames"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#kollacli.common.service.Service.get_parentnames" title="Permalink to this definition">¶</a></dt>
|
||||
<dd></dd></dl>
|
||||
|
||||
<dl class="method">
|
||||
@ -642,11 +625,31 @@ If it doesn’t exist, a new password will be added.</p>
|
||||
<tt class="descname">get_vars</tt><big>(</big><big>)</big><a class="reference internal" href="_modules/kollacli/common/service.html#Service.get_vars"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#kollacli.common.service.Service.get_vars" title="Permalink to this definition">¶</a></dt>
|
||||
<dd></dd></dl>
|
||||
|
||||
<dl class="method">
|
||||
<dt id="kollacli.common.service.Service.is_supported">
|
||||
<tt class="descname">is_supported</tt><big>(</big><big>)</big><a class="reference internal" href="_modules/kollacli/common/service.html#Service.is_supported"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#kollacli.common.service.Service.is_supported" title="Permalink to this definition">¶</a></dt>
|
||||
<dd></dd></dl>
|
||||
|
||||
<dl class="method">
|
||||
<dt id="kollacli.common.service.Service.remove_childname">
|
||||
<tt class="descname">remove_childname</tt><big>(</big><em>childname</em><big>)</big><a class="reference internal" href="_modules/kollacli/common/service.html#Service.remove_childname"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#kollacli.common.service.Service.remove_childname" title="Permalink to this definition">¶</a></dt>
|
||||
<dd></dd></dl>
|
||||
|
||||
<dl class="method">
|
||||
<dt id="kollacli.common.service.Service.remove_groupname">
|
||||
<tt class="descname">remove_groupname</tt><big>(</big><em>groupname</em><big>)</big><a class="reference internal" href="_modules/kollacli/common/service.html#Service.remove_groupname"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#kollacli.common.service.Service.remove_groupname" title="Permalink to this definition">¶</a></dt>
|
||||
<dd></dd></dl>
|
||||
|
||||
<dl class="method">
|
||||
<dt id="kollacli.common.service.Service.remove_parentname">
|
||||
<tt class="descname">remove_parentname</tt><big>(</big><em>parentname</em><big>)</big><a class="reference internal" href="_modules/kollacli/common/service.html#Service.remove_parentname"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#kollacli.common.service.Service.remove_parentname" title="Permalink to this definition">¶</a></dt>
|
||||
<dd></dd></dl>
|
||||
|
||||
<dl class="method">
|
||||
<dt id="kollacli.common.service.Service.set_supported">
|
||||
<tt class="descname">set_supported</tt><big>(</big><em>supported</em><big>)</big><a class="reference internal" href="_modules/kollacli/common/service.html#Service.set_supported"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#kollacli.common.service.Service.set_supported" title="Permalink to this definition">¶</a></dt>
|
||||
<dd></dd></dl>
|
||||
|
||||
<dl class="method">
|
||||
<dt id="kollacli.common.service.Service.upgrade">
|
||||
<tt class="descname">upgrade</tt><big>(</big><big>)</big><a class="reference internal" href="_modules/kollacli/common/service.html#Service.upgrade"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#kollacli.common.service.Service.upgrade" title="Permalink to this definition">¶</a></dt>
|
||||
@ -870,8 +873,8 @@ If not clear, and key is found, edit property in place.</p>
|
||||
has non-ascii chars in it, they would display as unicode bytes
|
||||
(u0414u0435u043au0430u0442). By converting
|
||||
the list to string here, the proper non-ascii chars are displayed.</p>
|
||||
<p>This will only change the lists when the output is to a table. It cannot
|
||||
be changed if the display output is json, yaml, etc.</p>
|
||||
<p>This will only change the lists when the output is to a user visible
|
||||
medium. It cannot be changed if the display output is json, yaml, etc.</p>
|
||||
</dd></dl>
|
||||
|
||||
<dl class="function">
|
||||
@ -1086,7 +1089,7 @@ unicode.</p>
|
||||
<li class="right" >
|
||||
<a href="py-modindex.html" title="Python Module Index"
|
||||
>modules</a> |</li>
|
||||
<li><a href="index.html">kollacli 4.0.0.dev483 documentation</a> »</li>
|
||||
<li><a href="index.html">kollacli 4.0.1.dev498 documentation</a> »</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="footer">
|
||||
|
15
doc/build/html/kollacli.html
vendored
15
doc/build/html/kollacli.html
vendored
@ -6,7 +6,7 @@
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
|
||||
<title>kollacli package — kollacli 4.0.0.dev483 documentation</title>
|
||||
<title>kollacli package — kollacli 4.0.1.dev498 documentation</title>
|
||||
|
||||
<link rel="stylesheet" href="_static/default.css" type="text/css" />
|
||||
<link rel="stylesheet" href="_static/pygments.css" type="text/css" />
|
||||
@ -14,7 +14,7 @@
|
||||
<script type="text/javascript">
|
||||
var DOCUMENTATION_OPTIONS = {
|
||||
URL_ROOT: './',
|
||||
VERSION: '4.0.0.dev483',
|
||||
VERSION: '4.0.1.dev498',
|
||||
COLLAPSE_INDEX: false,
|
||||
FILE_SUFFIX: '.html',
|
||||
HAS_SOURCE: true
|
||||
@ -23,7 +23,7 @@
|
||||
<script type="text/javascript" src="_static/jquery.js"></script>
|
||||
<script type="text/javascript" src="_static/underscore.js"></script>
|
||||
<script type="text/javascript" src="_static/doctools.js"></script>
|
||||
<link rel="top" title="kollacli 4.0.0.dev483 documentation" href="index.html" />
|
||||
<link rel="top" title="kollacli 4.0.1.dev498 documentation" href="index.html" />
|
||||
</head>
|
||||
<body>
|
||||
<div class="related">
|
||||
@ -35,7 +35,7 @@
|
||||
<li class="right" >
|
||||
<a href="py-modindex.html" title="Python Module Index"
|
||||
>modules</a> |</li>
|
||||
<li><a href="index.html">kollacli 4.0.0.dev483 documentation</a> »</li>
|
||||
<li><a href="index.html">kollacli 4.0.1.dev498 documentation</a> »</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
@ -52,9 +52,8 @@
|
||||
<ul>
|
||||
<li class="toctree-l1"><a class="reference internal" href="kollacli.api.html">kollacli.api package</a><ul>
|
||||
<li class="toctree-l2"><a class="reference internal" href="kollacli.api.html#submodules">Submodules</a></li>
|
||||
<li class="toctree-l2"><a class="reference internal" href="kollacli.api.html#module-kollacli.api.async">kollacli.api.async module</a></li>
|
||||
<li class="toctree-l2"><a class="reference internal" href="kollacli.api.html#module-kollacli.api.client">kollacli.api.client module</a></li>
|
||||
<li class="toctree-l2"><a class="reference internal" href="kollacli.api.html#module-kollacli.api.deploy">kollacli.api.deploy module</a></li>
|
||||
<li class="toctree-l2"><a class="reference internal" href="kollacli.api.html#module-kollacli.api.control_plane">kollacli.api.control_plane module</a></li>
|
||||
<li class="toctree-l2"><a class="reference internal" href="kollacli.api.html#module-kollacli.api.exceptions">kollacli.api.exceptions module</a></li>
|
||||
<li class="toctree-l2"><a class="reference internal" href="kollacli.api.html#module-kollacli.api.group">kollacli.api.group module</a></li>
|
||||
<li class="toctree-l2"><a class="reference internal" href="kollacli.api.html#module-kollacli.api.host">kollacli.api.host module</a></li>
|
||||
@ -74,6 +73,8 @@
|
||||
<li class="toctree-l2"><a class="reference internal" href="kollacli.commands.html#module-kollacli.commands.host">kollacli.commands.host module</a></li>
|
||||
<li class="toctree-l2"><a class="reference internal" href="kollacli.commands.html#module-kollacli.commands.password">kollacli.commands.password module</a></li>
|
||||
<li class="toctree-l2"><a class="reference internal" href="kollacli.commands.html#module-kollacli.commands.property">kollacli.commands.property module</a></li>
|
||||
<li class="toctree-l2"><a class="reference internal" href="kollacli.commands.html#module-kollacli.commands.pull">kollacli.commands.pull module</a></li>
|
||||
<li class="toctree-l2"><a class="reference internal" href="kollacli.commands.html#module-kollacli.commands.reconfigure">kollacli.commands.reconfigure module</a></li>
|
||||
<li class="toctree-l2"><a class="reference internal" href="kollacli.commands.html#module-kollacli.commands.service">kollacli.commands.service module</a></li>
|
||||
<li class="toctree-l2"><a class="reference internal" href="kollacli.commands.html#module-kollacli.commands.support">kollacli.commands.support module</a></li>
|
||||
<li class="toctree-l2"><a class="reference internal" href="kollacli.commands.html#module-kollacli.commands.upgrade">kollacli.commands.upgrade module</a></li>
|
||||
@ -185,7 +186,7 @@
|
||||
<li class="right" >
|
||||
<a href="py-modindex.html" title="Python Module Index"
|
||||
>modules</a> |</li>
|
||||
<li><a href="index.html">kollacli 4.0.0.dev483 documentation</a> »</li>
|
||||
<li><a href="index.html">kollacli 4.0.1.dev498 documentation</a> »</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="footer">
|
||||
|
15
doc/build/html/modules.html
vendored
15
doc/build/html/modules.html
vendored
@ -6,7 +6,7 @@
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
|
||||
<title>kollacli — kollacli 4.0.0.dev483 documentation</title>
|
||||
<title>kollacli — kollacli 4.0.1.dev498 documentation</title>
|
||||
|
||||
<link rel="stylesheet" href="_static/default.css" type="text/css" />
|
||||
<link rel="stylesheet" href="_static/pygments.css" type="text/css" />
|
||||
@ -14,7 +14,7 @@
|
||||
<script type="text/javascript">
|
||||
var DOCUMENTATION_OPTIONS = {
|
||||
URL_ROOT: './',
|
||||
VERSION: '4.0.0.dev483',
|
||||
VERSION: '4.0.1.dev498',
|
||||
COLLAPSE_INDEX: false,
|
||||
FILE_SUFFIX: '.html',
|
||||
HAS_SOURCE: true
|
||||
@ -23,7 +23,7 @@
|
||||
<script type="text/javascript" src="_static/jquery.js"></script>
|
||||
<script type="text/javascript" src="_static/underscore.js"></script>
|
||||
<script type="text/javascript" src="_static/doctools.js"></script>
|
||||
<link rel="top" title="kollacli 4.0.0.dev483 documentation" href="index.html" />
|
||||
<link rel="top" title="kollacli 4.0.1.dev498 documentation" href="index.html" />
|
||||
</head>
|
||||
<body>
|
||||
<div class="related">
|
||||
@ -35,7 +35,7 @@
|
||||
<li class="right" >
|
||||
<a href="py-modindex.html" title="Python Module Index"
|
||||
>modules</a> |</li>
|
||||
<li><a href="index.html">kollacli 4.0.0.dev483 documentation</a> »</li>
|
||||
<li><a href="index.html">kollacli 4.0.1.dev498 documentation</a> »</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
@ -52,9 +52,8 @@
|
||||
<li class="toctree-l2"><a class="reference internal" href="kollacli.html#subpackages">Subpackages</a><ul>
|
||||
<li class="toctree-l3"><a class="reference internal" href="kollacli.api.html">kollacli.api package</a><ul>
|
||||
<li class="toctree-l4"><a class="reference internal" href="kollacli.api.html#submodules">Submodules</a></li>
|
||||
<li class="toctree-l4"><a class="reference internal" href="kollacli.api.html#module-kollacli.api.async">kollacli.api.async module</a></li>
|
||||
<li class="toctree-l4"><a class="reference internal" href="kollacli.api.html#module-kollacli.api.client">kollacli.api.client module</a></li>
|
||||
<li class="toctree-l4"><a class="reference internal" href="kollacli.api.html#module-kollacli.api.deploy">kollacli.api.deploy module</a></li>
|
||||
<li class="toctree-l4"><a class="reference internal" href="kollacli.api.html#module-kollacli.api.control_plane">kollacli.api.control_plane module</a></li>
|
||||
<li class="toctree-l4"><a class="reference internal" href="kollacli.api.html#module-kollacli.api.exceptions">kollacli.api.exceptions module</a></li>
|
||||
<li class="toctree-l4"><a class="reference internal" href="kollacli.api.html#module-kollacli.api.group">kollacli.api.group module</a></li>
|
||||
<li class="toctree-l4"><a class="reference internal" href="kollacli.api.html#module-kollacli.api.host">kollacli.api.host module</a></li>
|
||||
@ -74,6 +73,8 @@
|
||||
<li class="toctree-l4"><a class="reference internal" href="kollacli.commands.html#module-kollacli.commands.host">kollacli.commands.host module</a></li>
|
||||
<li class="toctree-l4"><a class="reference internal" href="kollacli.commands.html#module-kollacli.commands.password">kollacli.commands.password module</a></li>
|
||||
<li class="toctree-l4"><a class="reference internal" href="kollacli.commands.html#module-kollacli.commands.property">kollacli.commands.property module</a></li>
|
||||
<li class="toctree-l4"><a class="reference internal" href="kollacli.commands.html#module-kollacli.commands.pull">kollacli.commands.pull module</a></li>
|
||||
<li class="toctree-l4"><a class="reference internal" href="kollacli.commands.html#module-kollacli.commands.reconfigure">kollacli.commands.reconfigure module</a></li>
|
||||
<li class="toctree-l4"><a class="reference internal" href="kollacli.commands.html#module-kollacli.commands.service">kollacli.commands.service module</a></li>
|
||||
<li class="toctree-l4"><a class="reference internal" href="kollacli.commands.html#module-kollacli.commands.support">kollacli.commands.support module</a></li>
|
||||
<li class="toctree-l4"><a class="reference internal" href="kollacli.commands.html#module-kollacli.commands.upgrade">kollacli.commands.upgrade module</a></li>
|
||||
@ -146,7 +147,7 @@
|
||||
<li class="right" >
|
||||
<a href="py-modindex.html" title="Python Module Index"
|
||||
>modules</a> |</li>
|
||||
<li><a href="index.html">kollacli 4.0.0.dev483 documentation</a> »</li>
|
||||
<li><a href="index.html">kollacli 4.0.1.dev498 documentation</a> »</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="footer">
|
||||
|
BIN
doc/build/html/objects.inv
vendored
BIN
doc/build/html/objects.inv
vendored
Binary file not shown.
27
doc/build/html/py-modindex.html
vendored
27
doc/build/html/py-modindex.html
vendored
@ -6,7 +6,7 @@
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
|
||||
<title>Python Module Index — kollacli 4.0.0.dev483 documentation</title>
|
||||
<title>Python Module Index — kollacli 4.0.1.dev498 documentation</title>
|
||||
|
||||
<link rel="stylesheet" href="_static/default.css" type="text/css" />
|
||||
<link rel="stylesheet" href="_static/pygments.css" type="text/css" />
|
||||
@ -14,7 +14,7 @@
|
||||
<script type="text/javascript">
|
||||
var DOCUMENTATION_OPTIONS = {
|
||||
URL_ROOT: './',
|
||||
VERSION: '4.0.0.dev483',
|
||||
VERSION: '4.0.1.dev498',
|
||||
COLLAPSE_INDEX: false,
|
||||
FILE_SUFFIX: '.html',
|
||||
HAS_SOURCE: true
|
||||
@ -23,7 +23,7 @@
|
||||
<script type="text/javascript" src="_static/jquery.js"></script>
|
||||
<script type="text/javascript" src="_static/underscore.js"></script>
|
||||
<script type="text/javascript" src="_static/doctools.js"></script>
|
||||
<link rel="top" title="kollacli 4.0.0.dev483 documentation" href="index.html" />
|
||||
<link rel="top" title="kollacli 4.0.1.dev498 documentation" href="index.html" />
|
||||
|
||||
|
||||
|
||||
@ -38,7 +38,7 @@
|
||||
<li class="right" >
|
||||
<a href="#" title="Python Module Index"
|
||||
>modules</a> |</li>
|
||||
<li><a href="index.html">kollacli 4.0.0.dev483 documentation</a> »</li>
|
||||
<li><a href="index.html">kollacli 4.0.1.dev498 documentation</a> »</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
@ -69,11 +69,6 @@
|
||||
<td>
|
||||
<a href="kollacli.api.html#module-kollacli.api"><tt class="xref">kollacli.api</tt></a></td><td>
|
||||
<em></em></td></tr>
|
||||
<tr class="cg-1">
|
||||
<td></td>
|
||||
<td>
|
||||
<a href="kollacli.api.html#module-kollacli.api.async"><tt class="xref">kollacli.api.async</tt></a></td><td>
|
||||
<em></em></td></tr>
|
||||
<tr class="cg-1">
|
||||
<td></td>
|
||||
<td>
|
||||
@ -82,7 +77,7 @@
|
||||
<tr class="cg-1">
|
||||
<td></td>
|
||||
<td>
|
||||
<a href="kollacli.api.html#module-kollacli.api.deploy"><tt class="xref">kollacli.api.deploy</tt></a></td><td>
|
||||
<a href="kollacli.api.html#module-kollacli.api.control_plane"><tt class="xref">kollacli.api.control_plane</tt></a></td><td>
|
||||
<em></em></td></tr>
|
||||
<tr class="cg-1">
|
||||
<td></td>
|
||||
@ -159,6 +154,16 @@
|
||||
<td>
|
||||
<a href="kollacli.commands.html#module-kollacli.commands.property"><tt class="xref">kollacli.commands.property</tt></a></td><td>
|
||||
<em></em></td></tr>
|
||||
<tr class="cg-1">
|
||||
<td></td>
|
||||
<td>
|
||||
<a href="kollacli.commands.html#module-kollacli.commands.pull"><tt class="xref">kollacli.commands.pull</tt></a></td><td>
|
||||
<em></em></td></tr>
|
||||
<tr class="cg-1">
|
||||
<td></td>
|
||||
<td>
|
||||
<a href="kollacli.commands.html#module-kollacli.commands.reconfigure"><tt class="xref">kollacli.commands.reconfigure</tt></a></td><td>
|
||||
<em></em></td></tr>
|
||||
<tr class="cg-1">
|
||||
<td></td>
|
||||
<td>
|
||||
@ -298,7 +303,7 @@
|
||||
<li class="right" >
|
||||
<a href="#" title="Python Module Index"
|
||||
>modules</a> |</li>
|
||||
<li><a href="index.html">kollacli 4.0.0.dev483 documentation</a> »</li>
|
||||
<li><a href="index.html">kollacli 4.0.1.dev498 documentation</a> »</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="footer">
|
||||
|
10
doc/build/html/search.html
vendored
10
doc/build/html/search.html
vendored
@ -6,7 +6,7 @@
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
|
||||
<title>Search — kollacli 4.0.0.dev483 documentation</title>
|
||||
<title>Search — kollacli 4.0.1.dev498 documentation</title>
|
||||
|
||||
<link rel="stylesheet" href="_static/default.css" type="text/css" />
|
||||
<link rel="stylesheet" href="_static/pygments.css" type="text/css" />
|
||||
@ -14,7 +14,7 @@
|
||||
<script type="text/javascript">
|
||||
var DOCUMENTATION_OPTIONS = {
|
||||
URL_ROOT: './',
|
||||
VERSION: '4.0.0.dev483',
|
||||
VERSION: '4.0.1.dev498',
|
||||
COLLAPSE_INDEX: false,
|
||||
FILE_SUFFIX: '.html',
|
||||
HAS_SOURCE: true
|
||||
@ -24,7 +24,7 @@
|
||||
<script type="text/javascript" src="_static/underscore.js"></script>
|
||||
<script type="text/javascript" src="_static/doctools.js"></script>
|
||||
<script type="text/javascript" src="_static/searchtools.js"></script>
|
||||
<link rel="top" title="kollacli 4.0.0.dev483 documentation" href="index.html" />
|
||||
<link rel="top" title="kollacli 4.0.1.dev498 documentation" href="index.html" />
|
||||
<script type="text/javascript">
|
||||
jQuery(function() { Search.loadIndex("searchindex.js"); });
|
||||
</script>
|
||||
@ -43,7 +43,7 @@
|
||||
<li class="right" >
|
||||
<a href="py-modindex.html" title="Python Module Index"
|
||||
>modules</a> |</li>
|
||||
<li><a href="index.html">kollacli 4.0.0.dev483 documentation</a> »</li>
|
||||
<li><a href="index.html">kollacli 4.0.1.dev498 documentation</a> »</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
@ -94,7 +94,7 @@
|
||||
<li class="right" >
|
||||
<a href="py-modindex.html" title="Python Module Index"
|
||||
>modules</a> |</li>
|
||||
<li><a href="index.html">kollacli 4.0.0.dev483 documentation</a> »</li>
|
||||
<li><a href="index.html">kollacli 4.0.1.dev498 documentation</a> »</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="footer">
|
||||
|
2
doc/build/html/searchindex.js
vendored
2
doc/build/html/searchindex.js
vendored
File diff suppressed because one or more lines are too long
@ -4,14 +4,6 @@ kollacli.api package
|
||||
Submodules
|
||||
----------
|
||||
|
||||
kollacli.api.async module
|
||||
-------------------------
|
||||
|
||||
.. automodule:: kollacli.api.async
|
||||
:members:
|
||||
:undoc-members:
|
||||
:show-inheritance:
|
||||
|
||||
kollacli.api.client module
|
||||
--------------------------
|
||||
|
||||
@ -20,10 +12,10 @@ kollacli.api.client module
|
||||
:undoc-members:
|
||||
:show-inheritance:
|
||||
|
||||
kollacli.api.deploy module
|
||||
--------------------------
|
||||
kollacli.api.control_plane module
|
||||
---------------------------------
|
||||
|
||||
.. automodule:: kollacli.api.deploy
|
||||
.. automodule:: kollacli.api.control_plane
|
||||
:members:
|
||||
:undoc-members:
|
||||
:show-inheritance:
|
||||
|
@ -52,6 +52,22 @@ kollacli.commands.property module
|
||||
:undoc-members:
|
||||
:show-inheritance:
|
||||
|
||||
kollacli.commands.pull module
|
||||
-----------------------------
|
||||
|
||||
.. automodule:: kollacli.commands.pull
|
||||
:members:
|
||||
:undoc-members:
|
||||
:show-inheritance:
|
||||
|
||||
kollacli.commands.reconfigure module
|
||||
------------------------------------
|
||||
|
||||
.. automodule:: kollacli.commands.reconfigure
|
||||
:members:
|
||||
:undoc-members:
|
||||
:show-inheritance:
|
||||
|
||||
kollacli.commands.service module
|
||||
--------------------------------
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user