如何使用 ansible 编写 eclipse 安装和配置脚本? [英] How can I use ansible to script eclipse installation and configuration?

查看:23
本文介绍了如何使用 ansible 编写 eclipse 安装和配置脚本?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是一个可靠的新手,所以如果这很明显或在其他地方有很好的覆盖,请原谅.

I am an ansible newbee, so please forgive if this is obvious or well covered elsewhere.

我想使用 Vagrant 编写开发者虚拟机设置的脚本.部分任务是安装(简单)和配置 eclipse(即安装插件和功能、导入格式设置和其他工作区配置等——不是那么简单).

I want to script the setup of a developer virtual machine using Vagrant. Part of the task is to install (simple) and configure eclipse (i.e. install plugins and features, import formatting settings and other workspace configurations etc. -- not so simple).

我可以使用 shell 配置器以及一些自动进行 eclipse 设置的脚本.或者我可以尝试使用 ansible 配置器.ansible 可以在这里帮助我吗?是否有任何 ansible 模块为标准 eclipse 设置任务提供解决方案?

I could use the shell provisioner plus some scripts that automate the eclipse setup. Or I could try to use the ansible provisioner. Can ansible help me here? Are there any ansible modules that provide solutions for standard eclipse setup tasks?

当然,我可以手动创建一个合适的 Eclipse 安装,然后打包并分发它.为了使其可重复,我需要记录所有步骤并确保此文档完整.这不是我想做的.我想编写安装过程的脚本,以便随时重复和扩展.

Of course I could create a suitable eclipse installation manually and then pack and distribute that. In order to make this repeatable I would need to document all the steps and make sure that this documentation is complete. This is not what I want to do. I want to script the installation process so that it can be repeated and extended at any time.

推荐答案

您可以使用 Eclipse Oomph 为 VM 配置 Eclipse 安装和工作区.Oomph 是 Eclipse 自己的安装程序 背后的技术,但它旨在成为任何 Eclipse 的通用配置管理工具——基于产品".有一个学习曲线,但 Oomph 声明的目的之一是支持您所面临的情况.首先,请参阅 Oomph 创作指南.

Instead of an external, generic tool like Ansible, you could use Eclipse Oomph to configure an Eclipse installation and workspace for the VMs. Oomph is the technology behind Eclipse's own installer, but it's designed to be a generic configuration management tool for any Eclipse-based "products." There's a learning curve, but one of Oomph's stated purposes is to support the situation you're facing. For starters, see the Oomph Authoring Guide.

这篇关于如何使用 ansible 编写 eclipse 安装和配置脚本?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆