threatstack / threatstack-ansible

Ansible for installing Threatstack Agent
https://www.threatstack.com
MIT License
23 stars 17 forks source link

Fails on Ubuntu Yakkety 16.10 and Zesty 17.04 #31

Closed florianparain closed 3 years ago

florianparain commented 7 years ago

It works great on Ubuntu Xenial 16.04. It fails on Ubuntu Yakkety 16.10 and Zesty 17.04.

Below is the Ansible logs and stack trace.

I've installed the version 3.1.0.

  roles:
    - role: threatstack.threatstack-ansible
      threatstack_configure_agent: false
TASK [threatstack.threatstack-ansible : python-apt dependency.]
ok: [default]

TASK [threatstack.threatstack-ansible : apt-transport-https dependency.]
ok: [default]

TASK [threatstack.threatstack-ansible : Add Threat Stack apt repository key.]
changed: [default]

TASK [threatstack.threatstack-ansible : Add Threat Stack apt repository.]
An exception occurred during task execution. To see the full traceback, use -vvv. The error was: Shared connection to 127.0.0.1 closed.
fatal: [default]: FAILED!

Traceback (most recent call last):
  File "/tmp/ansible_tb3AJK/ansible_module_apt_repository.py", line 565, in <module>
    main()
  File "/tmp/ansible_tb3AJK/ansible_module_apt_repository.py", line 553, in main
    cache.update()
  File "/usr/lib/python2.7/dist-packages/apt/cache.py", line 464, in update
    raise FetchFailedException(e)
apt.cache.FetchFailedException: E:The repository 'https://pkg.threatstack.com/Ubuntu zesty Release' does not have a Release file.
Shared connection to 127.0.0.1 closed.
florianparain commented 6 years ago

Answer from Threat Stack support:

At the moment, we don't support Ubuntu Yakkety or Zesty, and don't have individual packages for either of them. You can find a full list of all of our supported OS's here: https://threatstack.zendesk.com/hc/en-us/articles/200343805-Supported-Operating-Systems-Kernels. That being said, while not officially supported, our Xenial package will likely work properly on both of those OS's. If you wanted to give this a try, you can edit tasks/apt_install.yml in the threatstack-ansible.yml. Just change the line repo: "deb {{ threatstack_pkg_url }}/Ubuntu {{ ansible_distribution_release }} main" to repo: "deb {{ threatstack_pkg_url }}/Ubuntu xenial main", and it will download our xenial package.