diff options
Diffstat (limited to 'tools/dev_env_setup/playbooks')
7 files changed, 149 insertions, 0 deletions
diff --git a/tools/dev_env_setup/playbooks/create_eos_app_shortcuts.yaml b/tools/dev_env_setup/playbooks/create_eos_app_shortcuts.yaml new file mode 100644 index 0000000..b641e74 --- /dev/null +++ b/tools/dev_env_setup/playbooks/create_eos_app_shortcuts.yaml @@ -0,0 +1,16 @@ +--- +# vim:ff=unix ts=2 sw=2 ai expandtab + +- name: "Setting default personality" + shell: eos-select-personality default + +- name: "Creating ~/.local/share/applications directory" + file: path=~/.local/share/applications state=directory + sudo: False + +- name: "Creating EOS links for various apps" + shell: cp /usr/share/applications/$item.desktop ~/.local/share/applications/eos-app-$item.desktop + with_items: + - gnome-terminal + - devhelp + sudo: False diff --git a/tools/dev_env_setup/playbooks/install_eos_dev_package.yaml b/tools/dev_env_setup/playbooks/install_eos_dev_package.yaml new file mode 100644 index 0000000..f69c31a --- /dev/null +++ b/tools/dev_env_setup/playbooks/install_eos_dev_package.yaml @@ -0,0 +1,9 @@ +--- +# vim:ff=unix ts=2 sw=2 ai expandtab + +- name: "Ensuring that we can call apt from our scripts" + raw: "apt-get install -y --force-yes python-apt python" + +- name: "Ensuring that eos-dev is installed. If not, this operation will take a signifficant amount of time" + apt: name=eos-dev force=yes update_cache=true cache_valid_time=259200 + diff --git a/tools/dev_env_setup/playbooks/setup_default_ssh_key.yaml b/tools/dev_env_setup/playbooks/setup_default_ssh_key.yaml new file mode 100644 index 0000000..32e7cd8 --- /dev/null +++ b/tools/dev_env_setup/playbooks/setup_default_ssh_key.yaml @@ -0,0 +1,17 @@ +--- +# vim:ff=unix ts=2 sw=2 ai expandtab + +- name: "Creating ssh directory" + file: path=~/.ssh state=directory mode=700 + sudo: False + +- name: "Copying default ssh keys" + copy: src=../keys/$item dest=~/.ssh/ mode=700 + with_items: + - id_rsa + - id_rsa.pub + sudo: False + +- name: "Adding default known_hosts file" + copy: src=../templates/known_hosts dest=~/.ssh/ + sudo: False diff --git a/tools/dev_env_setup/playbooks/setup_dev_folder.yaml b/tools/dev_env_setup/playbooks/setup_dev_folder.yaml new file mode 100644 index 0000000..562fd9b --- /dev/null +++ b/tools/dev_env_setup/playbooks/setup_dev_folder.yaml @@ -0,0 +1,12 @@ +--- +# vim:ff=unix ts=2 sw=2 ai expandtab +- name: "Copying files for desktop generation" + copy: src=../templates/$item dest=~/ mode=755 + with_items: + - add_dev_tools_folder.py + - run_app_in_context_of.sh + sudo: False + +- name: "Creating development tools folder" + shell: executable=/bin/bash ~/run_app_in_context_of.sh eos-shell ~/add_dev_tools_folder.py &> ~/add_dev_tools_folder.log + sudo: False diff --git a/tools/dev_env_setup/playbooks/setup_dev_machine.yaml b/tools/dev_env_setup/playbooks/setup_dev_machine.yaml new file mode 100644 index 0000000..e87b827 --- /dev/null +++ b/tools/dev_env_setup/playbooks/setup_dev_machine.yaml @@ -0,0 +1,27 @@ +--- +# vim:ff=unix ts=2 sw=2 ai expandtab + +### +# Notice the minus on the line below -- this starts the playbook's record +# in the YAML document. Only one playbook is allowed per YAML file. Indent +# the body of the playbook. +- + hosts: dev_machine + + sudo: True + + vars_files: + - "../default_variables.yaml" + + tasks: + - include: install_eos_dev_package.yaml + + - include: setup_tools_root.yaml + + - include: create_eos_app_shortcuts.yaml + + - include: setup_dev_folder.yaml + + - include: setup_default_ssh_key.yaml + + - include: setup_jhbuild.yaml diff --git a/tools/dev_env_setup/playbooks/setup_jhbuild.yaml b/tools/dev_env_setup/playbooks/setup_jhbuild.yaml new file mode 100644 index 0000000..a8749a6 --- /dev/null +++ b/tools/dev_env_setup/playbooks/setup_jhbuild.yaml @@ -0,0 +1,50 @@ +--- +# vim:ff=unix ts=2 sw=2 ai expandtab + +- name: "Ensuring that git is installed" + apt: name=git update_cache=true cache_valid_time=259200 + +- name: "Creating checkout directory" + file: path=~/checkout state=directory mode=755 + sudo: False + +- name: "Cloning jhbuild" + git: repo=git://git.gnome.org/jhbuild + dest=~/checkout/jhbuild + sudo: False + +- name: "Installing jhbuild - autogen" + shell: cd ~/checkout/jhbuild && ./autogen.sh + sudo: False + +- name: "Installing jhbuild - make" + shell: cd ~/checkout/jhbuild && make + sudo: False + +- name: "Installing jhbuild - make install" + shell: cd ~/checkout/jhbuild && make install + sudo: False + +- name: "Creating glib schemas dir" + file: path=~/install/share/glib-2.0/schemas state=directory mode=755 + sudo: False + + +- name: "Creating /opt/gnome directory" + file: path=/opt/gnome state=directory mode=777 + +- name: "Updating apt-file cache" + shell: apt-file update + + +- name: "Installing jhbuild dependencies - this may take a very long time" + shell: executable=/bin/bash echo -e "y\n" | ~/.local/bin/jhbuild sysdeps --install + sudo: False + +- name: "Installing auth key" + template: src=../templates/.jhbuildrc-auth.j2 dest=~/.jhbuildrc-auth + sudo: False + +- name: "Cloning relevant modules - this will take a very long time - use htop and watch for git processes" + shell: executable=/bin/bash ~/.local/bin/jhbuild update endless-apps + sudo: False diff --git a/tools/dev_env_setup/playbooks/setup_tools_root.yaml b/tools/dev_env_setup/playbooks/setup_tools_root.yaml new file mode 100644 index 0000000..126a68b --- /dev/null +++ b/tools/dev_env_setup/playbooks/setup_tools_root.yaml @@ -0,0 +1,18 @@ +--- +# vim:ff=unix ts=2 sw=2 ai expandtab + +- name: "Ensuring that git is installed" + apt: name=git update_cache=true cache_valid_time=259200 + +- name: "Creating turbine directory" + file: path=~/checkout state=directory mode=755 + +- name: "Cloning turbine" + git: repo=git://git.gnome.org/turbine + dest=~/checkout/turbine + +- name: "Installing turbine" + shell: cd ~/checkout/turbine && python setup.py install + +- name: "Installing transifex client" + shell: pip install transifex-client |