forked from ungleich-public/cdist
34bb391937
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
39 lines
1.1 KiB
Python
Executable file
39 lines
1.1 KiB
Python
Executable file
#!/usr/bin/env python3
|
|
#
|
|
# 2010-2011 Nico Schottelius (nico-cdist at schottelius.org)
|
|
#
|
|
# This file is part of cdist.
|
|
#
|
|
# cdist is free software: you can redistribute it and/or modify
|
|
# it under the terms of the GNU General Public License as published by
|
|
# the Free Software Foundation, either version 3 of the License, or
|
|
# (at your option) any later version.
|
|
#
|
|
# cdist is distributed in the hope that it will be useful,
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
# GNU General Public License for more details.
|
|
#
|
|
# You should have received a copy of the GNU General Public License
|
|
# along with cdist. If not, see <http://www.gnu.org/licenses/>.
|
|
#
|
|
#
|
|
|
|
import sys # argv
|
|
|
|
__cdist_version="2.0.0"
|
|
|
|
def cdist_echo(type, *args):
|
|
"""Ignore type for now, support later"""
|
|
print(*args)
|
|
|
|
def cdist_deploy_to(hostname):
|
|
"""Mimic the old deploy to: Deploy to one host"""
|
|
cdist_echo("info", "Deploying to host", hostname)
|
|
|
|
|
|
if __name__ == "__main__":
|
|
hostname=sys.argv[1]
|
|
cdist_echo("info", "cdist", __cdist_version, ": Configuring host", hostname)
|
|
cdist_deploy_to(hostname)
|
|
|