How to use AWX inventory from survey? - ansible-tower

I want to use dynamic host inventory that needs to be filled by the executor from the survey. How can I implement this feature?

Related

Create database kind of thing in Druid

I am using druid to store data for creating dashboard over superset. Now, I want to use the same cluster to store data for other project which is not completely different. But we want to segregate datasources of both the projects.
Is there a way to create database/keyspace sort of thing to segregate datasources of two different project in druid?
Multiple way to work with this use case.
Easiest one create multiple datasources into superset. Based on the same connection to druid.
Then create roles to provide access to this datasources. Then end user will have 1 or multiple roles. Each role providing data from druid but from different perspective. Every user will be able to create his own dash based on this dataset if allowed by role.
Other way is to user row security level. Each row has a specific tag. Each user is configured to have access to 1 or many tags. This approch allow you to have the same dash for all users
More ressources here => https://superset.apache.org/docs/security

How to create custom smart contract using Python Flask on custom BlockChain

I am planning to create one smart contract but I am not able to grasp how to do it in Python flask, all I see about is how to do it in etherium.
I have already created one custom blockchain with:
Nodes - mine, add transaction, broadcast and more
BlockChain - for each nodes to maintain their local blocks
Wallet - Each node having wallet to maintain their amount
Transaction - To have transaction record in ordered way and having hash functions and more
But Right now I want to try to create one smart contract from scratch on my custom block chain but I am not sure how to do it. I am new in this field so any help on this ?
I just want to be able to use any one of the smart contract feature in my custom block chain without using etherium.

Actor Pattern - How to model Room Booking Structure ?

I'am trying to model hotel room booking system in actor pattern. just for information i'am using akka.net for this in .Net.
For now i have created following actors.
1. HotelActorRoomsActor (An Aggregate of RoomActor)
3. BookingsActor (An Aggregate of BookingActor)
4. EmployeesActor (An aggregate of EmployeeActor)
4. UIActor
Currently as i have planned iam creating the system as follows.
1. UIActor Takes the BookingInformation (Checkin, Checkout, No of rooms)
2. Tell the BookingsActor about the information.
3. BookingsActor creates / starts a new BookingActor and passes on the information
4. On BookingActor Start it will
4a. Schedule Rooms for the Booking
4b. Tell the Rooms about the schedule so that they block themselves
4c. Schedule Employee Tasks for the rooms
4d. Tell the selected employees about their tasks
4e. Tell the system that the booking as been created
4f. Tell the BookingsActor to restart the BookingActor at some specific time in
the future (24 hours before actual booking checkin) and shut down.
Problems im facing are
1. How to keep the UIActor in sync of the booking information
2. The UIActor Should also be able to Save information about multiple bookings (For a partiular customer etc) how and where should it be done inside an Actor Pattern?
3. Lets say i want the information about multiple bookings From Date1 to Date2 where should i persist this information to later retrieve it?
ad 1. you can see example of sync dispatcher in akka bootcamp
and example source:
dispatcher = akka.actor.synchronized-dispatcher
#causes ChartingActor to run on the UI thread for WinForms
ad 2. the UI actor should only collect data from user and display results, all other actions need to be pushed down for processing to let say storage actor
ad 3. you need a storage provider - that can be mongoDB or SQL solution. Passing a message to storage actor you can persist reservation data or retrive when needed.

CloudKit: Is it possible to have a custom zone in a public database?

I might get involved in building a Cloud Kit enabled App if the subscription service is available in the public domain.
Having subscriptions for custom zones in a private database would surely only allow you to register for changes YOU have made somewhere else?
Answering the question from your question title:
The documentation of CKRecordZone says:
A CKRecordZone object defines an area for organizing related records in a database. Zones are an important part of how you organize your data. The public and private databases have a single default zone, and in the private database you can create additional custom zones as needed. Use custom zones to arrange and encapsulate groups of related records in the private database. Custom zones support other capabilities too, such as the ability to write multiple records as a single atomic transaction
So you can not create a zone in a public database
You are right. A private database is always linked to only 1 apple ID. If you want to receive notifications for changes in the private database, then both the user/device making the change and the user/device that has to receive the notification must be loged in using the same Apple ID.
This has changed as of iOS10. It is now possible to receive updates when data in another user's private database changes by creating a CKShare are sharing it with participants. There isn't a lot of documentation on it yet, but I expect tutorials will start popping up before long.
WWDC 2016 CloudKit
As stated in apple docs you can create additional custom zones only in the private database,
but like Erik correctly said, you can share your private records contained in a custom zone into the shared database, as the video he linked shows from min 20:00 on.

Inserting records in CRM 2011 using SSIS

I am working on a SSIS (2012) package that collects data from our till system to staging area and from staging area to CRM 2011 (on-premise | Roll up 11).
In CRM we have contact entity and order entity. These two entity are related via a guid called contactid(PK in contact) and customerid(FK in order).
when i insert new order in to CRM how do I ensure that the guid is created to associate that order to either a new contact or already existing contact?
I'm assuming since you're using SSIS your doing straight SQL inserts? If so, this is not supported. Ideally you'd be using the SDK, and in that case, you can set the GUID manually before actually creating the record, although the Contact Id still has to exist when creating the Order.
So you'll want to grab all of your existing Contacts up front, then determine for each order, if the contact exists or not. If it does, just set the customerId when you create the order and you're all set. If it doesn't, you'll need to create the Contact (potentially assigning it an Id), and then setting the customerId when you create the order.
I would echo what Daryl has said in that SQL inserts are not supported and generally a bad idea. However there is a solution, a company called Kingsway Soft make a SSIS component that allows you to read and write into CRM using the web services. The best part of it is that it is free if you don't want to run it using SQL agent. Even if you do want to schedule it the cost is very small for such an excellent product.
You can download it from here
http://www.kingswaysoft.com/products/ssis-integration-toolkit-for-microsoft-dynamics-crm