- ์๋ฒ ๋๋
- Todo
- ARM ์๋ฒ ๋ชจ๋ ์ค๊ณ ๋ฐ ๋๋ผ์ด๋ฒ ๊ฐ๋ฐ
- CPU ๋ชจ๋๋ก ์ฅ๋๊ฐ ์ ์
- Doing?
- ์ทจ๋ฏธ... ํ๋์ผ๋ก ๋นผ์...
- OpenStack
- Todo
- Python ๊ฐ๋ฐ
import os | |
import sys | |
BASE_DIR = os.path.dirname((os.path.dirname(__file__))) | |
sys.path.append(BASE_DIR) | |
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "test.settings") | |
from django.core.wsgi import get_wsgi_application | |
application = get_wsgi_application() |
#!/usr/bin/env python | |
# coding: utf-8- | |
import os | |
import re | |
import sys | |
import tarfile as tar | |
LOG_PATH = sys.argv[1] |
UserParameter=fchost.discovery, /etc/zabbix/fchost_discovery.py | |
UserParameter=fchost.status[*], /etc/zabbix/fchost_status.py $1 |
UserParameter=ping_check[*], /etc/zabbix/ping_check.py $1 |
UserParameter=bridge.discovery, /etc/zabbix/bridge_discovery.py | |
UserParameter=brdige.status[*], /etc/zabbix/bridge_status.py $1 |
#!/usr/bin/env python | |
# coding: utf-8 | |
""" | |
Glance Image ๋ฆฌ์คํธ๋ฅผ ํ์ผ๋ก ๋ง๋ ๋ค์ ์คํฌ๋ฆฝํธ ์คํํ๋๋กํ์. | |
์ด๋ฏธ์ง์ค ํ์์๋ ๊ฒ๋ค์ ๋ํด์๋ ์คํฌ๋ฆฝํธ ์คํ ์ ์ ๋ก๊ทธ์์ ์ญ์ ํ๋๋กํ๋ค. | |
""" | |
import sys | |
import subprocess as sub |
# Update, upgrade and install development tools: | |
#apt-get update | |
#apt-get -y upgrade | |
#apt-get -y install build-essential | |
#apt-get -y install git-core | |
# Install rbenv | |
git clone git://github.com/sstephenson/rbenv.git /usr/local/rbenv | |
# Add rbenv to the path: |
Traceback (most recent call last): | |
File "/var/lib/ambari-agent/cache/stacks/HDP/2.3/services/IOTDEMO/package/scripts/master.py", line 132, in <module> | |
Master().execute() | |
File "/usr/lib/python2.6/site-packages/resource_management/libraries/script/script.py", line 219, in execute | |
method(env) | |
File "/var/lib/ambari-agent/cache/stacks/HDP/2.3/services/IOTDEMO/package/scripts/master.py", line 43, in install | |
Execute ('cd ' + params.install_dir +'; git clone https://github.com/hortonworks/sedev >> '+params.stack_log) | |
File "/usr/lib/python2.6/site-packages/resource_management/core/base.py", line 154, in __init__ | |
self.env.run() | |
File "/usr/lib/python2.6/site-packages/resource_management/core/environment.py", line 152, in run |
# -*- coding: utf-8 -*- | |
from __future__ import unicode_literals | |
import os | |
from boto.route53 import connect_to_region | |
from boto.route53.record import ResourceRecordSets | |
def apply(domain, ip, ttl, region, access_key=None, secret_key=None): | |
if access_key: | |
os.environ.setdefault('AWS_ACCESS_KEY_ID', access_key) |