- 임베디드
- Todo
- ARM 서버 모듈 설계 및 드라이버 개발
- CPU 모듈로 장난감 제작
- Doing?
- 취미... 활동으로 빼자...
- OpenStack
- Todo
- Python 개발
UserParameter=bridge.discovery, /etc/zabbix/bridge_discovery.py | |
UserParameter=brdige.status[*], /etc/zabbix/bridge_status.py $1 |
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() |
UserParameter=fchost.discovery, /etc/zabbix/fchost_discovery.py | |
UserParameter=fchost.status[*], /etc/zabbix/fchost_status.py $1 |
#!/usr/bin/env python | |
# coding: utf-8 | |
""" | |
Glance Image 리스트를 파일로 만든 다음 스크립트 실행하도록하자. | |
이미지중 필요없는 것들에 대해서는 스크립트 실행 전에 로그에서 삭제하도록한다. | |
""" | |
import sys | |
import subprocess as sub |
#!/usr/bin/env python | |
# coding: utf-8- | |
import os | |
import re | |
import sys | |
import tarfile as tar | |
LOG_PATH = sys.argv[1] |
# 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 |
sudo dpkg --add-architecture i386
sudo apt-get install -y build-essential
I hereby claim:
To claim this, I am signing this object: