-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
12 changed files
with
106 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,20 @@ | ||
Vagrant.configure('2') do |config| | ||
config.vm.box = 'ubuntu/trusty64' | ||
config.vm.box = 'fgrehm/trusty64-lxc' | ||
|
||
config.vm.synced_folder '.', '/vagrant', disabled: true | ||
config.vm.synced_folder '.', '/vagrant/ansible-role-powerline' | ||
|
||
config.vm.provider 'lxc' do |lxc, override| | ||
override.vm.box = 'fgrehm/trusty64-lxc' | ||
end | ||
|
||
config.vm.provision 'shell' do |s| | ||
s.keep_color = true | ||
s.path = 'tests/init.sh' | ||
end | ||
|
||
config.vm.define 'ubuntu-trusty' do |vmconfig| | ||
vmconfig.vm.hostname = 'ansible-role-powerline-ubuntu-trusty64' | ||
end | ||
|
||
config.vm.define 'fedora-23' do |vmconfig| | ||
vmconfig.vm.hostname = 'ansible-role-powerline-fedora-23' | ||
vmconfig.vm.box = 'obnox/fedora23-64-lxc' | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,16 @@ | ||
--- | ||
galaxy_info: | ||
author: mjanser | ||
description: Powerline on Ubuntu | ||
description: Installs powerline on Linux distributions | ||
license: MIT | ||
min_ansible_version: 1.6 | ||
platforms: | ||
- name: Ubuntu | ||
versions: | ||
- trusty | ||
- name: Fedora | ||
versions: | ||
- 23 | ||
categories: | ||
- system | ||
dependencies: [] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
--- | ||
- name: "include variables for dnf installation of powerline" | ||
include_vars: dnf.yml | ||
|
||
- name: "ensure packages for powerline are installed" | ||
dnf: | ||
name: "{{ item }}" | ||
with_items: | ||
- powerline | ||
- powerline-docs | ||
sudo: yes |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
--- | ||
- name: "include variables for pip installation of powerline" | ||
include_vars: pip.yml | ||
|
||
- name: "ensure python pip is installed" | ||
apt: | ||
name: "{{ item }}" | ||
with_items: | ||
- git | ||
- python-pip | ||
sudo: yes | ||
when: ansible_pkg_mgr == 'apt' | ||
|
||
- name: "ensure powerline is installed" | ||
pip: | ||
name: powerline-status | ||
sudo: yes |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
"segments": { | ||
"right": [ | ||
{ | ||
"function": "powerline.segments.common.sys.system_load", | ||
"priority": 50 | ||
} | ||
] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
--- | ||
powerline_config_file: /etc/xdg/powerline/config.json | ||
powerline_themes_directory: /etc/xdg/powerline/themes | ||
powerline_bindings_directory: /usr/share/powerline |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
--- | ||
powerline_config_file: /usr/local/lib/python2.7/dist-packages/powerline/config_files/config.json | ||
powerline_themes_directory: /usr/local/lib/python2.7/dist-packages/powerline/config_files/themes | ||
powerline_bindings_directory: /usr/local/lib/python2.7/dist-packages/powerline/bindings |