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

查看:90
本文介绍了如何使用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 Provisioner以及一些脚本来自动执行Eclipse设置.或者,我可以尝试使用ansible设置程序. Ansible可以在这里帮助我吗?是否有任何可解决问题的模块为标准日食设置任务提供解决方案?

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 为虚拟机配置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天全站免登陆