Git Product home page Git Product logo

ansible-akamai's Introduction

jacob-hudson.com

Detailed personal website Hosted on Google Firebase

Font Choice

Hosting

Hosting is through Google Firebase for the following reasons:

  • It is free and has no advertisements
  • It alowes me to leverage Google's robust CDN
  • It also gives me exposure into Firebase features

TODO

  • Include Language progress tracker

ansible-akamai's People

Contributors

jacob-hudson avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

ansible-akamai's Issues

Credentials are not get correctly from .edgerc

I run the following playbook and I'm receiving the following error

The full traceback is:
Traceback (most recent call last):
  File "/var/folders/rv/rd498xxn7k74r4yd70hlx5rd3g1mj5/T/ansible_DuxHy4/ansible_module_akamai.py", line 128, in <module>
    main()
  File "/var/folders/rv/rd498xxn7k74r4yd70hlx5rd3g1mj5/T/ansible_DuxHy4/ansible_module_akamai.py", line 120, in main
    is_error, has_changed, result = authenticate(module.params)
  File "/var/folders/rv/rd498xxn7k74r4yd70hlx5rd3g1mj5/T/ansible_DuxHy4/ansible_module_akamai.py", line 99, in authenticate
    response = session.get(urljoin(baseurl, endpoint))
  File "/usr/local/Cellar/python@2/2.7.15_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/requests/sessions.py", line 525, in get
    return self.request('GET', url, **kwargs)
  File "/usr/local/Cellar/python@2/2.7.15_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/requests/sessions.py", line 498, in request
    prep = self.prepare_request(req)
  File "/usr/local/Cellar/python@2/2.7.15_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/requests/sessions.py", line 441, in prepare_request
    hooks=merge_hooks(request.hooks, self.hooks),
  File "/usr/local/Cellar/python@2/2.7.15_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/requests/models.py", line 309, in prepare
    self.prepare_url(url, params)
  File "/usr/local/Cellar/python@2/2.7.15_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/requests/models.py", line 386, in prepare_url
    raise InvalidURL("Invalid URL %r: No host supplied" % url)
requests.exceptions.InvalidURL: Invalid URL u'https:///papi/v1/groups': No host supplied
ciobancaiv2 ~/w/g/ansible-akamai> python --version                                                                                                                                                                                                       2 master!?
Python 2.7.15
ciobancaiv2 ~/w/g/ansible-akamai> ansible --version                                                                                                                                                                                                        master!?
ansible 2.6.0
  config file = /Users/ciobancaiv2/work/git/ansible-akamai/ansible.cfg
  configured module search path = [u'/Users/ciobancaiv2/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules']
  ansible python module location = /usr/local/lib/python2.7/site-packages/ansible
  executable location = /usr/local/bin/ansible
  python version = 2.7.15 (default, Jun 17 2018, 12:46:58) [GCC 4.2.1 Compatible Apple LLVM 9.1.0 (clang-902.0.39.2)]

In library/akamai.py if I add manually the credentials, the playbook run without any issue. In my home directory I have the .edgerc file with the api credentials from Akamai.

If you have time can you please look over it ?

in authenticate NameError: name 'EdgeRc' is not defined

``
The full traceback is:
Traceback (most recent call last):
File "/Users/palea009/.ansible/tmp/ansible-tmp-1601491615.179287-78883412705808/AnsiballZ_akamai.py", line 102, in
_ansiballz_main()
File "/Users/palea009/.ansible/tmp/ansible-tmp-1601491615.179287-78883412705808/AnsiballZ_akamai.py", line 94, in _ansiballz_main
invoke_module(zipped_mod, temp_path, ANSIBALLZ_PARAMS)
File "/Users/palea009/.ansible/tmp/ansible-tmp-1601491615.179287-78883412705808/AnsiballZ_akamai.py", line 40, in invoke_module
runpy.run_module(mod_name='ansible.modules.akamai', init_globals=None, run_name='main', alter_sys=True)
File "/usr/local/opt/[email protected]/Frameworks/Python.framework/Versions/3.8/lib/python3.8/runpy.py", line 206, in run_module
return _run_module_code(code, init_globals, run_name, mod_spec)
File "/usr/local/opt/[email protected]/Frameworks/Python.framework/Versions/3.8/lib/python3.8/runpy.py", line 96, in _run_module_code
_run_code(code, mod_globals, init_globals,
File "/usr/local/opt/[email protected]/Frameworks/Python.framework/Versions/3.8/lib/python3.8/runpy.py", line 86, in _run_code
exec(code, run_globals)
File "/var/folders/zb/62d8dsj52c17tx7dcs6p4jxsxcr9n1/T/ansible_akamai_payload_5dyo9ean/ansible_akamai_payload.zip/ansible/modules/akamai.py", line 90, in
File "/var/folders/zb/62d8dsj52c17tx7dcs6p4jxsxcr9n1/T/ansible_akamai_payload_5dyo9ean/ansible_akamai_payload.zip/ansible/modules/akamai.py", line 82, in main

File "/var/folders/zb/62d8dsj52c17tx7dcs6p4jxsxcr9n1/T/ansible_akamai_payload_5dyo9ean/ansible_akamai_payload.zip/ansible/modules/akamai.py", line 33, in authenticate
NameError: name 'EdgeRc' is not defined
fatal: [localhost]: FAILED! => {
"changed": false,
"module_stderr": "Traceback (most recent call last):\n File "/Users/palea009/.ansible/tmp/ansible-tmp-1601491615.179287-78883412705808/AnsiballZ_akamai.py", line 102, in \n _ansiballz_main()\n File "/Users/palea009/.ansible/tmp/ansible-tmp-1601491615.179287-78883412705808/AnsiballZ_akamai.py", line 94, in _ansiballz_main\n invoke_module(zipped_mod, temp_path, ANSIBALLZ_PARAMS)\n File "/Users/palea009/.ansible/tmp/ansible-tmp-1601491615.179287-78883412705808/AnsiballZ_akamai.py", line 40, in invoke_module\n runpy.run_module(mod_name='ansible.modules.akamai', init_globals=None, run_name='main', alter_sys=True)\n File "/usr/local/opt/[email protected]/Frameworks/Python.framework/Versions/3.8/lib/python3.8/runpy.py", line 206, in run_module\n return _run_module_code(code, init_globals, run_name, mod_spec)\n File "/usr/local/opt/[email protected]/Frameworks/Python.framework/Versions/3.8/lib/python3.8/runpy.py", line 96, in _run_module_code\n _run_code(code, mod_globals, init_globals,\n File "/usr/local/opt/[email protected]/Frameworks/Python.framework/Versions/3.8/lib/python3.8/runpy.py", line 86, in _run_code\n exec(code, run_globals)\n File "/var/folders/zb/62d8dsj52c17tx7dcs6p4jxsxcr9n1/T/ansible_akamai_payload_5dyo9ean/ansible_akamai_payload.zip/ansible/modules/akamai.py", line 90, in \n File "/var/folders/zb/62d8dsj52c17tx7dcs6p4jxsxcr9n1/T/ansible_akamai_payload_5dyo9ean/ansible_akamai_payload.zip/ansible/modules/akamai.py", line 82, in main\n File "/var/folders/zb/62d8dsj52c17tx7dcs6p4jxsxcr9n1/T/ansible_akamai_payload_5dyo9ean/ansible_akamai_payload.zip/ansible/modules/akamai.py", line 33, in authenticate\nNameError: name 'EdgeRc' is not defined\n",
"module_stdout": "Please install edgegrid-python using pip\n",
"msg": "MODULE FAILURE\nSee stdout/stderr for the exact error",

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.