This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # Recursively deploys folder content. Attempt checksum deploy first to optimize upload time. | |
| repo_url="http://artifactory:8081/artifactory" | |
| tgt_repo="some_repository" | |
| user=user | |
| pass=password | |
| dir="$2" | |
| if [ -z "$dir" ]; then echo "Please specify a directory to recursively upload from!"; exit 1; fi | |
| if [ ! -x "`which sha1sum`" ]; then echo "You need to have the 'sha1sum' command in your path."; exit 1; fi | |
| # Upload by checksum all jars and pom from the source dir to the target repo |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python | |
| # -*- coding: utf-8 -*- | |
| ############################################################## | |
| # Change VM networks label by nic index on ESXi | |
| # | |
| ############################################################## | |
| # author: Valeriy Solovyov <[email protected]> | |
| # version 0.1 <4.11.2015> | |
| # - initial | |
| ############################################################## |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python | |
| # -*- coding: utf-8 -*- | |
| ############################################################## | |
| # Get an artifact url | |
| # | |
| ############################################################## | |
| # author: Valeriy Solovyov <[email protected]> | |
| # version 0.1 <3.15.2016> | |
| # - initial | |
| ############################################################## |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python | |
| # -*- coding: utf-8 -*- | |
| ############################################################## | |
| # Get IP of VM by name on ESXi | |
| # | |
| ############################################################## | |
| ############################################################## | |
| # author: Valeriy Solovyov <[email protected]> | |
| # version 0.2 <4.11.2015> | |
| # - fixed issue on getting ip. By default return same as you |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env bash | |
| ############################################################## | |
| # Manage a host through iDRAC or mount iso on it | |
| # | |
| ############################################################## | |
| # author: Valeriy Solovyov <[email protected]> | |
| # version 0.1 <30.11.2015> | |
| # - initial | |
| ############################################################## | |
| if [ "$(id -u)" != "0" ]; then |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python | |
| # -*- coding: utf-8 -*- | |
| ############################################################## | |
| # Remove VM by name on ESXI | |
| # | |
| ############################################################## | |
| ############################################################## | |
| # author: Valeriy Solovyov <[email protected]> | |
| # version 0.1 <3.11.2015> | |
| # - initial |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python | |
| # -*- coding: utf-8 -*- | |
| ############################################################## | |
| # Shutdown VM by name on ESXI | |
| # | |
| ############################################################## | |
| ############################################################## | |
| # author: Valeriy Solovyov <[email protected]> | |
| # version 0.1 <3.11.2015> | |
| # - initial |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/perl | |
| ################################################ | |
| # Removing a section from ssh config file | |
| ################################################ | |
| # cat /root/.ssh/config | |
| # Host some-host12 | |
| # HostName some-host1 | |
| # Port 22 | |
| # User root | |
| # IdentityFile /root/.ssh/id_rsa.host |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [Unit] | |
| Description=elasticsearch | |
| # Requirements | |
| Requires=etcd.service | |
| Requires=docker.service | |
| # Dependency ordering | |
| After=etcd.service | |
| After=docker.service |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [Unit] | |
| Description=kibana | |
| # Requirements | |
| Requires=etcd.service | |
| Requires=docker.service | |
| Requires=elasticsearch.service | |
| # Dependency ordering | |
| After=etcd.service | |
| After=docker.service |