Browse Source

Removed legacy alfred role after verifiying that everything still works

Till Klocke 9 years ago
parent
commit
ee9a701870

+ 0 - 38
roles/alfred/README.md

@@ -1,38 +0,0 @@
-Role Name
-=========
-
-A brief description of the role goes here.
-
-Requirements
-------------
-
-Any pre-requisites that may not be covered by Ansible itself or the role should be mentioned here. For instance, if the role uses the EC2 module, it may be a good idea to mention in this section that the boto package is required.
-
-Role Variables
---------------
-
-A description of the settable variables for this role should go here, including any variables that are in defaults/main.yml, vars/main.yml, and any variables that can/should be set via parameters to the role. Any variables that are read from other roles and/or the global scope (ie. hostvars, group vars, etc.) should be mentioned here as well.
-
-Dependencies
-------------
-
-A list of other roles hosted on Galaxy should go here, plus any details in regards to parameters that may need to be set for other roles, or variables that are used from other roles.
-
-Example Playbook
-----------------
-
-Including an example of how to use your role (for instance, with variables passed in as parameters) is always nice for users too:
-
-    - hosts: servers
-      roles:
-         - { role: username.rolename, x: 42 }
-
-License
--------
-
-BSD
-
-Author Information
-------------------
-
-An optional section for the role authors to include contact information, or a website (HTML is not allowed).

+ 0 - 4
roles/alfred/defaults/main.yml

@@ -1,4 +0,0 @@
----
-# defaults file for alfred
-alfred_version: 2015.0
-alfred_source_url: http://downloads.open-mesh.org/batman/stable/sources/alfred/alfred-{{alfred_version}}.tar.gz

+ 0 - 5
roles/alfred/handlers/main.yml

@@ -1,5 +0,0 @@
----
-# handlers file for alfred
-
-- name: Mount all
-  shell: mount -a

+ 0 - 19
roles/alfred/meta/main.yml

@@ -1,19 +0,0 @@
----
-galaxy_info:
-  author: Till Klocke
-  description: Install alfred daemon
-  company: Freifunk Dortmund
-  license: MIT
-  min_ansible_version: 1.2
-  platforms:
-  - name: Ubuntu
-    versions:
-    - trusty
-  - name: Debian
-    versions:
-    - wheezy
-    - jessie
-  categories:
-  - monitoring
-  - networking
-dependencies: []

+ 0 - 10
roles/alfred/tasks/debian.yml

@@ -1,10 +0,0 @@
-- include_vars: "{{ ansible_distribution }}-{{ ansible_distribution_release }}.yml"
-
-- name: Ensure Alfred build deps are installed
-  apt: name={{item}} state=present
-  with_items: "{{alfred_build_deps}}"
-
-- name: Ensure that debugfs is mounted. Alfred seems to depend on it
-  when: ansible_distribution_release == 'wheezy'
-  lineinfile: dest=/etc/fstab line="none /sys/kernel/debug     debugfs   defaults   0  0"
-  notify: Mount all

+ 0 - 24
roles/alfred/tasks/main.yml

@@ -1,24 +0,0 @@
----
-# tasks file for alfred
-
-- include: debian.yml
-  when: ansible_os_family == 'Debian'
-
-- name: Download alfred source code
-  get_url: dest=/usr/src url={{alfred_source_url}}
-
-- name: Extract alfred source code
-  unarchive: src=/usr/src/alfred-{{alfred_version}}.tar.gz dest=/usr/src copy=no
-
-- name: Copy libcap patch to src directory
-  when: alfred_libcap_dev_broken
-  template: src=libcap.patch.j2 dest=/usr/src/alfred-{{alfred_version}}/libcap.patch
-
-- name: Patch makefile to fix broken libcap-dev package on Debian and Ubuntu
-  when: alfred_libcap_dev_broken
-  patch: basedir=/usr/src/alfred-{{alfred_version}} src=/usr/src/alfred-{{alfred_version}}/libcap.patch remote_src=True strip=0
-
-- name: Compile and install alfred
-  shell: make && make install
-  args:
-    chdir: /usr/src/alfred-{{alfred_version}}

+ 0 - 20
roles/alfred/templates/libcap.patch.j2

@@ -1,20 +0,0 @@
---- ../alfred_/Makefile 2015-05-01 23:47:25.179644579 +0000
-+++ Makefile    2015-05-02 00:11:56.251644579 +0000
-@@ -83,11 +83,12 @@
- 
-   ifeq ($(origin LIBCAP_CFLAGS) $(origin LIBCAP_LDLIBS), undefined undefined)
-     LIBCAP_NAME ?= libcap
--    ifeq ($(shell $(PKG_CONFIG) --modversion $(LIBCAP_NAME) 2>/dev/null),)
--      $(error No $(LIBCAP_NAME) development libraries found!)
--    endif
--    LIBCAP_CFLAGS += $(shell $(PKG_CONFIG) --cflags $(LIBCAP_NAME))
--    LIBCAP_LDLIBS +=  $(shell $(PKG_CONFIG) --libs $(LIBCAP_NAME))
-+#    ifeq ($(shell $(PKG_CONFIG) --modversion $(LIBCAP_NAME) 2>/dev/null),)
-+#      $(error No $(LIBCAP_NAME) development libraries found!)
-+#    endif
-+#    LIBCAP_CFLAGS += $(shell $(PKG_CONFIG) --cflags $(LIBCAP_NAME))
-+#    LIBCAP_LDLIBS +=  $(shell $(PKG_CONFIG) --libs $(LIBCAP_NAME))
-+    LIBCAP_LDLIBS += -lcap
-   endif
-   CFLAGS += $(LIBCAP_CFLAGS)
-   CPPFLAGS += -DCONFIG_ALFRED_CAPABILITIES

+ 0 - 9
roles/alfred/vars/Debian-jessie.yml

@@ -1,9 +0,0 @@
-alfred_build_deps:
-  - build-essential
-  - pkg-config
-  - libcap2
-  - libcap-dev
-  - libgps21
-  - libgps-dev
-
-alfred_libcap_dev_broken: false

+ 0 - 9
roles/alfred/vars/Debian-wheezy.yml

@@ -1,9 +0,0 @@
-alfred_build_deps:
-  - build-essential
-  - pkg-config
-  - libcap2
-  - libcap-dev
-  - libgps20
-  - libgps-dev
-
-alfred_libcap_dev_broken: true

+ 0 - 9
roles/alfred/vars/Ubuntu-trusty.yml

@@ -1,9 +0,0 @@
-alfred_build_deps:
-  - build-essential
-  - pkg-config
-  - libcap2
-  - libcap-dev
-  - libgps20
-  - libgps-dev
-
-alfred_libcap_dev_broken: true

+ 0 - 2
roles/alfred/vars/main.yml

@@ -1,2 +0,0 @@
----
-# vars file for alfred