Commit Graph

27 Commits

Author SHA1 Message Date
Bill Nottingham
a2b18a9f6e Add test to short-circuit checkout if revision is already checked out.
Move role checkout to a separate play, to work with this.
2017-11-08 18:29:59 -05:00
Bill Nottingham
c827e73dac Update comments and task names. 2017-11-02 14:11:48 -04:00
Bill Nottingham
871dc81da3 Avoid task duplication by using default(omit). 2017-10-25 21:30:46 -04:00
Bill Nottingham
1285e8ffef Add blocks around the different SCMs, for clarity purposes. 2017-10-25 16:58:41 -04:00
adamscmRH
3dcd6ef2c2 Blocks creation of Hosts, Groups, and IS for Smart Inventories
* Updated View unit tests

* Refactored Validators

* Validator Fix for Blocking
2017-07-28 16:24:09 -04:00
Chris Meyers
6652a960b7 make insights playbook fetching an Ansible module
* Gone are the days of playbook abuse.
* Our project update can now call a single Insight Ansible module to
loop over the set of maintenance plans to download and save playbooks
for use by job templates.
2017-07-11 16:28:01 -04:00
Chris Meyers
0c034f29af use insights etag as a cache
* During insights project updates, if the etag from insights matches the
last etag (scm_revision) then don't get all the maintenance playbooks.
Otherwise, get all the maintenance playbooks and update scm_revision
with the etag.
2017-05-30 18:30:13 -04:00
Matthew Jones
189ea4d7f8 Fix insights related spelling mistake that could cause failure 2017-04-06 10:57:19 -04:00
Matthew Jones
1902bab8be Fix a with_items insights scm reference for newer ansible behavior
Newer ansible versions don't allow with_items to reference undefined
variables so we'll provide a default.

We'll also update some conditionals to deal with naming requirements
changes on insights api endpoints
2017-04-06 10:53:18 -04:00
Matthew Jones
eeed969a56 Make sure the insight playbook fetch doesn't quote user and pass 2017-03-29 16:42:15 -04:00
Matthew Jones
536a3b1647 Don't use jinja quote filter on insights username or password
This fixes an issue where a user was trying to use an exclamation mark
in the password. Historically we've used the quote filter but more and
more we're seeing conflicts with special characters
2017-03-27 15:40:43 -04:00
Matthew Jones
03593b957b Parse the mercurial revision correctly in setup playbook
Originally the value was coming out as:

xxxxxx default tip

When we want

xxxxxx

In order for the subsequent revision request to work correctly
2017-03-17 10:45:55 -04:00
Chris Meyers
c255c07ea5 pass ansible the "raw" git repo url
* I explored the |urlencode() filter instead. Ansible and git didn't
like this.
* Quoting doesn't seemed to be required. Ansible and the git module are
smart enough to do the right thing. I tested with a space in the repo
url path and it works.
2017-03-13 09:34:52 -04:00
Matthew Jones
95a2ed6336 Updates to insights playbook project syncing based on feedback
* Support "name" if given, else use a more reasonable file name for
  the playbook file
* Fix an issue where we wouldn't populate the playbooks correctly in
  the database
* Force downloading the playbooks every time since we can't tell when
  the file might change
2017-03-07 16:48:48 -05:00
Matthew Jones
2656e3f3fa Insights project api side integration
* Extend scm credential type to support username and password for
  redhat portal accounts
* Update project update playbook to work with remote insights server
2017-03-07 16:48:44 -05:00
Ryan Petrello
9e09fd38a7 Properly parse subversion revision info.
The ansible subversion module returns revision info in an unanticipated format:

https://github.com/ansible/ansible/blob/devel/lib/ansible/modules/source_control/subversion.py#L194-L199

Parse out the revision number we actually care about.

Resolves #4654
2017-01-17 10:04:30 -05:00
Matthew Jones
7c7d2e37ed Fix some issues syncing playbooks
* Build a list of playbooks and store it in the database at sync time
* Fix an issue running playbook sync on jobs for scan jobs
* Remove a TODO that was unneeded
2016-10-24 11:32:21 -04:00
Matthew Jones
e6bcc039f2 Rearchitect project update strategy
* Instead of using a fanout for project updates initial project
  updates will sync the latest commit hash
* Prior to a node running a job it will ensure that the latest project
  is synced
2016-10-20 13:30:44 -04:00
Tim Gerla
90f194c6db implement basic galaxy integration in the Project Update playbook 2015-03-20 12:36:15 -07:00
Chris Church
316f34f3f7 AC-473 Quote all parameters passed to source control tasks. 2014-02-26 23:12:38 -05:00
Chris Church
8aa9fe9d7e AC-932 Support accept_hostkey option to git module when using ansible >= 1.5. 2014-01-23 04:28:20 -05:00
Chris Church
63c9a5b4ac AC-132. Mask passwords in project update args and stdout. 2013-09-09 20:27:28 -04:00
Chris Church
663dfa24a2 AC-132 More updates after testing various SCM username/password/key options. 2013-09-07 19:38:27 -04:00
Chris Church
72d87fb908 AC-382, AC-352. Added status and last_updated fields for projects API. Various other updates to support projects using SCM. 2013-09-05 01:19:58 -04:00
Chris Church
e661f96054 AC-132 Minor updates after testing via API, notes on remaining items to implement. 2013-08-26 10:31:39 -04:00
Chris Church
ee3ba2c0e1 More work in progress on AC-132. 2013-08-26 10:31:39 -04:00
Chris Church
fc68955bad For AC-132. Work in progress on project SCM support. 2013-08-26 10:31:39 -04:00