Skip to content

Commit

Permalink
Merge pull request #26 from arbulu89/fetaure/create-0.2.0
Browse files Browse the repository at this point in the history
Fetaure/create 0.2.0
  • Loading branch information
diegoakechi authored Jun 4, 2019
2 parents 42939f6 + bff2aa5 commit ab59d95
Show file tree
Hide file tree
Showing 6 changed files with 22 additions and 22 deletions.
5 changes: 5 additions & 0 deletions salt-shaptools.changes
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
-------------------------------------------------------------------
Tue Jun 4 07:29:24 UTC 2019 - Xabier Arbulu Insausti <[email protected]>

- Create package version 0.2.0 after adding drbd module

-------------------------------------------------------------------
Thu May 16 09:03:43 UTC 2019 - Xabier Arbulu Insausti <[email protected]>

Expand Down
9 changes: 2 additions & 7 deletions salt-shaptools.spec
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@
# See also http://en.opensuse.org/openSUSE:Specfile_guidelines

Name: salt-shaptools
Version: 0.1.0
Release: 1
Version: 0.2.0
Release: 0
Summary: Salt modules and states for SAP Applications and SLE-HA components management

License: Apache-2.0
Expand Down Expand Up @@ -51,12 +51,7 @@ cp -R salt/states/drbd.py %{buildroot}/srv/salt/_states

%files
%defattr(-,root,root,-)
# %license macro is not available on older releases
%if 0%{?sle_version} <= 120300
%doc LICENSE
%else
%license LICENSE
%endif
%doc README.md
/srv/salt/_modules
/srv/salt/_states
Expand Down
2 changes: 1 addition & 1 deletion salt/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@
:since: 2018-11-30
"""

__version__ = "0.1.0"
__version__ = "0.2.0"
22 changes: 11 additions & 11 deletions salt/modules/drbd.py
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ def _add_peernode(line):

peernode = {}
peernode["peernode name"] = fields[0]
#Could be role or connection:
# Could be role or connection:
peernode[fields[1].split(":")[0]] = fields[1].split(":")[1]
peernode["peer volumes"] = []

Expand Down Expand Up @@ -349,16 +349,16 @@ def status(name='all'):

cmd = 'drbdadm status {}'.format(name)

#One possible output: (number of resource/node/vol are flexible)
#resource role:Secondary
# volume:0 disk:Inconsistent
# volume:1 disk:Inconsistent
# drbd-node1 role:Primary
# volume:0 replication:SyncTarget peer-disk:UpToDate done:10.17
# volume:1 replication:SyncTarget peer-disk:UpToDate done:74.08
# drbd-node2 role:Secondary
# volume:0 peer-disk:Inconsistent resync-suspended:peer
# volume:1 peer-disk:Inconsistent resync-suspended:peer
# One possible output: (number of resource/node/vol are flexible)
# resource role:Secondary
# volume:0 disk:Inconsistent
# volume:1 disk:Inconsistent
# drbd-node1 role:Primary
# volume:0 replication:SyncTarget peer-disk:UpToDate done:10.17
# volume:1 replication:SyncTarget peer-disk:UpToDate done:74.08
# drbd-node2 role:Secondary
# volume:0 peer-disk:Inconsistent resync-suspended:peer
# volume:1 peer-disk:Inconsistent resync-suspended:peer

result = __salt__['cmd.run_all'](cmd)
if result['retcode'] != 0:
Expand Down
2 changes: 1 addition & 1 deletion salt/states/drbd.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,10 @@
'''
from __future__ import absolute_import, print_function, unicode_literals
import logging
import time

from salt.exceptions import CommandExecutionError
from salt.ext import six
import time

LOGGER = logging.getLogger(__name__)

Expand Down
4 changes: 2 additions & 2 deletions salt/states/hanamod.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,8 @@
__virtualname__ = 'hana'

TMP_CONFIG_FILE = '/tmp/hana.conf'
INI_PARAM_PRELOAD_CS = {'section_name':'system_replication', 'parameter_name':'preload_column_tables'}
INI_PARAM_GAL = {'section_name':'memorymanager', 'parameter_name':'global_allocation_limit'}
INI_PARAM_PRELOAD_CS = {'section_name': 'system_replication', 'parameter_name': 'preload_column_tables'}
INI_PARAM_GAL = {'section_name': 'memorymanager', 'parameter_name': 'global_allocation_limit'}


def __virtual__(): # pragma: no cover
Expand Down

0 comments on commit ab59d95

Please sign in to comment.