LoginSignup
0
1

More than 5 years have passed since last update.

AnsibleでBIG-IPを操作するためのモジュール「bigsuds」のインストールの方法

Last updated at Posted at 2017-09-05

概要

  • いつも忘れてしまうのでメモ

手順

モジュールのクローン

GitHubからbigsudsモジュールをクローンする

$ git clone https://github.com/F5Networks/bigsuds

そのままインストールしようとするとエラーが・・・

$ sudo python setup.py install
Traceback (most recent call last):
  File "setup.py", line 1, in <module>
    from setuptools import setup
ImportError: No module named setuptools

というわけで、ここからsetup.pyなるものをダウンロード

$ curl -O http://peak.telecommunity.com/dist/ez_setup.py
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 10240  100 10240    0     0   3694      0  0:00:02  0:00:02 --:--:--  3694

そして、インストール

$ sudo python ez_setup.py
Downloading http://pypi.python.org/packages/2.7/s/setuptools/setuptools-0.6c11-py2.7.egg
Processing setuptools-0.6c11-py2.7.egg
Copying setuptools-0.6c11-py2.7.egg to /usr/local/lib/python2.7/dist-packages
Adding setuptools 0.6c11 to easy-install.pth file
Installing easy_install script to /usr/local/bin
Installing easy_install-2.7 script to /usr/local/bin
 
Installed /usr/local/lib/python2.7/dist-packages/setuptools-0.6c11-py2.7.egg
Processing dependencies for setuptools==0.6c11
Finished processing dependencies for setuptools==0.6c11

再度、bigsudsのインストール

$ sudo python setup.py install
running install
Checking .pth file support in /usr/local/lib/python2.7/dist-packages/
/usr/bin/python -E -c pass
TEST PASSED: /usr/local/lib/python2.7/dist-packages/ appears to support .pth files
running bdist_egg
running egg_info
creating bigsuds.egg-info
writing requirements to bigsuds.egg-info/requires.txt
writing bigsuds.egg-info/PKG-INFO
writing top-level names to bigsuds.egg-info/top_level.txt
writing dependency_links to bigsuds.egg-info/dependency_links.txt
writing manifest file 'bigsuds.egg-info/SOURCES.txt'
reading manifest file 'bigsuds.egg-info/SOURCES.txt'
writing manifest file 'bigsuds.egg-info/SOURCES.txt'
installing library code to build/bdist.linux-x86_64/egg
running install_lib
running build_py
creating build
creating build/lib.linux-x86_64-2.7
copying bigsuds.py -> build/lib.linux-x86_64-2.7
creating build/bdist.linux-x86_64
creating build/bdist.linux-x86_64/egg
copying build/lib.linux-x86_64-2.7/bigsuds.py -> build/bdist.linux-x86_64/egg
byte-compiling build/bdist.linux-x86_64/egg/bigsuds.py to bigsuds.pyc
creating build/bdist.linux-x86_64/egg/EGG-INFO
copying bigsuds.egg-info/PKG-INFO -> build/bdist.linux-x86_64/egg/EGG-INFO
copying bigsuds.egg-info/SOURCES.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
copying bigsuds.egg-info/dependency_links.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
copying bigsuds.egg-info/requires.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
copying bigsuds.egg-info/top_level.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
zip_safe flag not set; analyzing archive contents...
creating dist
creating 'dist/bigsuds-1.0.4-py2.7.egg' and adding 'build/bdist.linux-x86_64/egg' to it
removing 'build/bdist.linux-x86_64/egg' (and everything under it)
Processing bigsuds-1.0.4-py2.7.egg
Copying bigsuds-1.0.4-py2.7.egg to /usr/local/lib/python2.7/dist-packages
Adding bigsuds 1.0.4 to easy-install.pth file

Installed /usr/local/lib/python2.7/dist-packages/bigsuds-1.0.4-py2.7.egg
Processing dependencies for bigsuds==1.0.4
Searching for suds>=0.4
Reading http://pypi.python.org/simple/suds/
Best match: suds 0.4
Downloading https://pypi.python.org/packages/bc/d6/960acce47ee6f096345fe5a7d9be7708135fd1d0713571836f073efc7393/suds-0.4.tar.gz#md5=b7502de662341ed7275b673e6bd73191
Processing suds-0.4.tar.gz
Running suds-0.4/setup.py -q bdist_egg --dist-dir /tmp/easy_install-CIEwh1/suds-0.4/egg-dist-tmp-BSISO4
zip_safe flag not set; analyzing archive contents...
Adding suds 0.4 to easy-install.pth file
 
Installed /usr/local/lib/python2.7/dist-packages/suds-0.4-py2.7.egg
Finished processing dependencies for bigsuds==1.0.4

おわりに

これでAnsibleでBIG-IPモジュールが使えるぞ!

0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1